Checking to make sure tmux is actually installed before running plugin.

If it is not found an error message is printed.
master
Josh Matthews 14 years ago
parent 4e8681c6e1
commit f0a920df5a
  1. 6
      plugins/tmux/tmux.plugin.zsh

@ -1,3 +1,6 @@
# Only run if tmux is actually installed
if which tmux &> /dev/null
then
# Configuration variables # Configuration variables
# #
# Automatically start tmux # Automatically start tmux
@ -80,3 +83,6 @@ then
zsh_tmux_plugin_run zsh_tmux_plugin_run
fi fi
fi fi
else
print "zsh tmux plugin: tmux not found. Please install tmux before using this plugin."
fi

Loading…
Cancel
Save