12 lines
260 B
Bash
12 lines
260 B
Bash
|
_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
|
||
|
|