18 lines
352 B
Text
18 lines
352 B
Text
|
#compdef ,
|
||
|
local bin_dir="aet-bin"
|
||
|
local found_bin_dir=""
|
||
|
|
||
|
current_dir=$(pwd)
|
||
|
found_bin_dir=$current_dir/$bin_dir
|
||
|
while [ ! -d $found_bin_dir ]; do
|
||
|
if [[ $current_dir == $HOME ]]; then
|
||
|
found_bin_dir=$HOME/bin
|
||
|
break
|
||
|
fi
|
||
|
|
||
|
current_dir=$(realpath "$current_dir/..")
|
||
|
found_bin_dir=$current_dir/$bin_dir
|
||
|
done
|
||
|
|
||
|
_files -g "^," -W $found_bin_dir
|