Only test $1 as program in ,

This commit is contained in:
Andrew Tomaka 2022-02-03 20:05:34 -05:00
parent 662063f37b
commit 9038387fbc
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -4,9 +4,9 @@ source $ZDOTDIR/functions
dir=$(find-local-bin aet)
if [[ -f $dir/$@ ]]; then
if [[ -f $dir/$1 ]]; then
exec $dir/$@
elif [[ -f $HOME/bin/$@ ]]; then
elif [[ -f $HOME/bin/$1 ]]; then
exec $HOME/bin/$@
else
echo "Nothing to execute"