mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 23:40:39 +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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user