]> arthur.barton.de Git - ax-zsh.git/commitdiff
ssh_secure: Check for ssh(1) command first
authorAlexander Barton <alex@barton.de>
Mon, 26 Dec 2016 16:00:39 +0000 (17:00 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 26 Dec 2016 16:00:39 +0000 (17:00 +0100)
plugins/ssh_secure/ssh_secure.zshrc

index e27010d2a1f8dbde7c567266311c79fa969b95c1..5554ae1634063eef3b8848fd600d724f9d42dfe7 100644 (file)
@@ -1,11 +1,12 @@
 # AX-ZSH: Alex' Modular ZSH Configuration
 # ssh_secure.zshrc: Make SSH operations more secure
 
-[[ -z "$AXZSH_PLUGIN_CHECK" ]] || return 92
-
 # Make sure that "ssh(1)" is installed
 (( $+commands[ssh] )) || return
 
+# This plugin is optional.
+[[ -z "$AXZSH_PLUGIN_CHECK" ]] || return 92
+
 # Enforce "strict host key checking"
 #alias ssh="\ssh -o 'StrictHostKeyChecking yes'"
 alias sshnew="\ssh -o 'StrictHostKeyChecking no'"