Only test $1 as program in ,
This commit is contained in:
parent
662063f37b
commit
9038387fbc
1 changed files with 2 additions and 2 deletions
|
@ -4,9 +4,9 @@ source $ZDOTDIR/functions
|
||||||
|
|
||||||
dir=$(find-local-bin aet)
|
dir=$(find-local-bin aet)
|
||||||
|
|
||||||
if [[ -f $dir/$@ ]]; then
|
if [[ -f $dir/$1 ]]; then
|
||||||
exec $dir/$@
|
exec $dir/$@
|
||||||
elif [[ -f $HOME/bin/$@ ]]; then
|
elif [[ -f $HOME/bin/$1 ]]; then
|
||||||
exec $HOME/bin/$@
|
exec $HOME/bin/$@
|
||||||
else
|
else
|
||||||
echo "Nothing to execute"
|
echo "Nothing to execute"
|
||||||
|
|
Loading…
Reference in a new issue