Skip to content

Commit

Permalink
Update laravel-sail.plugin.zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
ariaieboy authored Aug 11, 2022
1 parent 50ca91a commit 5f70847
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions laravel-sail.plugin.zsh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export APP_SERVICE=${APP_SERVICE:-"laravel.test"}
function s() {
if [[ $1 == "cinit" ]]; then
docker run --rm \
Expand All @@ -14,7 +15,7 @@ function s() {
node:${2:=17} \
npm install
else
bash ./vendor/bin/sail $*
[ -f sail ] && sh sail $* || sh vendor/bin/sail $*
fi
}
# alias s='bash ./vendor/bin/sail'
Expand All @@ -29,7 +30,7 @@ alias sasr='s artisan schedule:run'
alias sp='s php'
alias sc='s composer'
alias sn='s npm'
alias spn='s pnpm'
alias spn='s exec -u sail $APP_SERVICE pnpm'
alias sy='s yarn'
alias swatch='s npm run watch'
alias sprod='s npm run production'
Expand Down

0 comments on commit 5f70847

Please sign in to comment.