Mercurial > ec-dotfiles
view bin/artisan @ 746:6b7f6f09b8d1 default tip
[vimrc] fix php syntax highlight
Example file: https://github.com/ppy/osu-web/blob/e23658f45ac2e85d78bd339947e0d1cee57629c6/app/Libraries/BBCodeFromDB.php
(around the end)
| author | nanaya <me@nanaya.net> |
|---|---|
| date | Wed, 29 Oct 2025 12:28:45 +0900 |
| parents | cd80bafc1257 |
| children |
line wrap: on
line source
#!/bin/sh # starts up artisan wherever set -e set -u _artisan_path="$(basename "${0}")" if [ ! -f "${_artisan_path}" ]; then _git_root="$(git rev-parse --show-toplevel 2> /dev/null || true)" _hg_root="$(hg root 2> /dev/null || true)" for i in "${_git_root}" "${_hg_root}"; do [ "${i}" = "" ] && continue _new_artisan_path="${i}/${_artisan_path}" if [ -f "${_new_artisan_path}" ]; then _artisan_path="${_new_artisan_path}" break fi done fi exec php "${_artisan_path}" "${@}"
