From 9038387fbcff95787617d81e46eaecfae7857404 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 3 Feb 2022 20:05:34 -0500 Subject: [PATCH] Only test $1 as program in , --- bin/bin/, | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/bin/, b/bin/bin/, index 229e6d0..665ada7 100755 --- a/bin/bin/, +++ b/bin/bin/, @@ -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"