summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/tmux/tmux.plugin.zsh7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
index f67c2b8b5..d8fdd9255 100644
--- a/plugins/tmux/tmux.plugin.zsh
+++ b/plugins/tmux/tmux.plugin.zsh
@@ -36,7 +36,12 @@ fi
# Override tmux with our function
function zsh_tmux_plugin_start()
{
- if [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]]
+ # We have other arguments, just run them
+ if [[ ! -n "$@" ]]
+ then
+ \tmux $@
+ # Try to connect to an existing session.
+ elif [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]]
then
\tmux attach || tmux -f $fixed_config new-session
[[ "$ZSH_TMUX_AUTOQUIT" == "true" ]] && exit