]> arthur.barton.de Git - ax-zsh.git/commitdiff
ssh: Look for and initialize an "ssh wrapper" command
authorAlexander Barton <alex@barton.de>
Fri, 10 Jul 2015 00:12:55 +0000 (02:12 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 10 Jul 2015 00:12:55 +0000 (02:12 +0200)
At the moment, this wrapper is only configured for Git (GIT_SSH).

plugins/ssh/ssh.zshrc

index c63985b514dc1dfc6f697be02ecd160e3f42d5fc..fcc9682bfa87a34066de4f9be2dd6a67a17233c4 100644 (file)
@@ -19,3 +19,11 @@ ssh_hostname_prompt() {
 }
 
 ax_hostname_prompt_functions=($ax_hostname_prompt_functions ssh_hostname_prompt)
+
+unset ssh_cmd
+(( $+commands[ssh-q] )) && ssh_cmd="ssh-q"
+(( $+commands[ssh-wrapper] )) && ssh_cmd="ssh-wrapper"
+if [[ -n "$ssh_cmd" ]]; then
+       export GIT_SSH="$ssh_cmd"
+fi
+unset ssh_cmd