add emacs tramp command and completion

This commit is contained in:
2021-06-08 11:21:44 +02:00
parent 41e02c7bb1
commit 674f8cd7c1
2 changed files with 4 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
# Some completions
compctl -K _completemarks j
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