added bash autocompletion script for sshch aliases

This commit is contained in:
Jeffrey Slort committed 2017-09-11 10:53:03 +02:00
1 parent 083144d656
commit de2f544178
1 file changed
+11
+11
View File
@@ -0,0 +1,11 @@
_sshch_complete()
{
local cur_word alias_list
cur_word="${COMP_WORDS[COMP_CWORD]}"
alias_list=`sshch -l | sed 's/,//g'`
COMPREPLY=($(compgen -W "$alias_list" -- $cur_word))
return 0
}
complete -F _sshch_complete sshch