mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-15 09:58:47 -07: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,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 New Issue
Block a user