remove unused commands, add ssh completions

This commit is contained in:
2022-07-18 17:09:06 +02:00
parent 54045e45fd
commit b0ccb07a44
2 changed files with 10 additions and 4 deletions

View File

@@ -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