Tmux plugin now just runs tmux if any extra args are given.

master
Josh Matthews 14 years ago
parent 3aef6793c2
commit 778ae57772
  1. 7
      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

Loading…
Cancel
Save