]> arthur.barton.de Git - ax-zsh.git/commitdiff
ssh: Make sure that ssh(1) is installed
authorAlexander Barton <alex@barton.de>
Fri, 10 Jul 2015 00:12:07 +0000 (02:12 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 10 Jul 2015 00:12:07 +0000 (02:12 +0200)
plugins/ssh/ssh.zshrc

index de192b6e966fa42c9677c5ab74f3769adce34503..c63985b514dc1dfc6f697be02ecd160e3f42d5fc 100644 (file)
@@ -1,6 +1,9 @@
 # AX-ZSH: Alex' Modular ZSH Configuration
 # ssh.zshrc: Setup (Open-) SSH
 
+# Make sure that "ssh(1)" is installed
+(( $+commands[ssh] )) || return
+
 ssh_logname_prompt() {
        [[ -n "$SSH_CLIENT" ]] || return 1
        echo "$LOGNAME"