]> arthur.barton.de Git - ax-zsh.git/commitdiff
ssh: Move ssh wrapper initialization to new ssh.zprofile
authorAlexander Barton <alex@barton.de>
Fri, 10 Jul 2015 00:15:58 +0000 (02:15 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 10 Jul 2015 00:15:58 +0000 (02:15 +0200)
plugins/ssh/ssh.zprofile [new file with mode: 0644]
plugins/ssh/ssh.zshrc

diff --git a/plugins/ssh/ssh.zprofile b/plugins/ssh/ssh.zprofile
new file mode 100644 (file)
index 0000000..4c803fe
--- /dev/null
@@ -0,0 +1,13 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# ssh.zprofile: Setup (Open-) SSH
+
+# Make sure that "ssh(1)" is installed
+(( $+commands[ssh] )) || return
+
+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
index fcc9682bfa87a34066de4f9be2dd6a67a17233c4..c63985b514dc1dfc6f697be02ecd160e3f42d5fc 100644 (file)
@@ -19,11 +19,3 @@ 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