Provide shortcut to find personal bin exes
This commit is contained in:
parent
686a06e2b6
commit
662063f37b
5 changed files with 43 additions and 3 deletions
13
bin/bin/,
Executable file
13
bin/bin/,
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue