mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
Checking to make sure tmux is actually installed before running plugin.
If it is not found an error message is printed.
This commit is contained in:
parent
4e8681c6e1
commit
f0a920df5a
1 changed files with 79 additions and 73 deletions
|
@ -1,3 +1,6 @@
|
|||
# Only run if tmux is actually installed
|
||||
if which tmux &> /dev/null
|
||||
then
|
||||
# Configuration variables
|
||||
#
|
||||
# Automatically start tmux
|
||||
|
@ -80,3 +83,6 @@ then
|
|||
zsh_tmux_plugin_run
|
||||
fi
|
||||
fi
|
||||
else
|
||||
print "zsh tmux plugin: tmux not found. Please install tmux before using this plugin."
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue