Provide shortcut to find personal bin exes

This commit is contained in:
Andrew Tomaka 2022-02-02 23:17:43 -05:00
parent 686a06e2b6
commit 662063f37b
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
5 changed files with 43 additions and 3 deletions

13
bin/bin/, Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env zsh
source $ZDOTDIR/functions
dir=$(find-local-bin aet)
if [[ -f $dir/$@ ]]; then
exec $dir/$@
elif [[ -f $HOME/bin/$@ ]]; then
exec $HOME/bin/$@
else
echo "Nothing to execute"
fi