mirror of
https://github.com/harish2704/dotFiles.git
synced 2026-09-10 15:21:09 +00:00
update
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
_complete_hdutils(){
|
||||
saveIFS=$IFS
|
||||
IFS=$'\n'
|
||||
case $COMP_CWORD in
|
||||
1)
|
||||
COMPREPLY=( $( compgen -W "$( /home/harish/.local/bin/hari-tools.sh list-commands )" -- "${COMP_WORDS[COMP_CWORD]}") )
|
||||
;;
|
||||
*)
|
||||
COMPREPLY=( $( compgen -o default -- "${COMP_WORDS[COMP_CWORD]}") )
|
||||
;;
|
||||
esac
|
||||
IFS="$saveIFS"
|
||||
return 0
|
||||
}
|
||||
complete -F _complete_hdutils hari-tools.sh
|
||||
Reference in New Issue
Block a user