remove unused commands, add ssh completions
This commit is contained in:
@@ -4,3 +4,12 @@ compdef _path_commands catwhich
|
||||
|
||||
_complete_tramp() {reply=($(ls $INFRA/host && grep "^ [^ ]" ~/dev/robespierre/infra/hosts/all.yml | sed 's/^ *\(.*\):$/\1/'))}
|
||||
compctl -K _complete_tramp tramp
|
||||
|
||||
function _myssh(){
|
||||
# Add bearstech hosts
|
||||
compadd $(ls $INFRA/host)
|
||||
# Add own hosts
|
||||
compadd $(cat ~/dev/robespierre/infra/hosts/all.yml | grep "^ [^ ]" | sed 's/ *\(.*\):/\1/')
|
||||
}
|
||||
compdef _myssh r
|
||||
compdef _myssh ra
|
||||
Reference in New Issue
Block a user