1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

move sail fish alias to a real bash script.

and use docker-compose as fallback
This commit is contained in:
Henrik Hautakoski 2025-12-06 08:18:19 +01:00
parent 21318127a3
commit afdfe37802
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +0,0 @@
function sail --wraps='[ -f sail ] && sh sail || sh vendor/bin/sail' --description 'alias sail=[ -f sail ] && sh sail || sh vendor/bin/sail'
[ -f sail ] && sh sail || sh vendor/bin/sail $argv
end

9
scripts/sail Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
CMD=vendor/bin/sail
if [ ! -x "${CMD}" ]; then
CMD=docker-compose
fi
${CMD} $@