778ae57772a02d11c393708c4c0644fbd1ffac35
- Author
- Josh Matthews <jmatth@nbcs.rutgers.edu>
- Committer
- Josh Matthews <jmatth@nbcs.rutgers.edu>
- Date
Message
Tmux plugin now just runs tmux if any extra args are given.
Diff
1diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
2index f67c2b8b54082575552c72c4b6bac3a6713e1508..d8fdd92555b84fb67c34f4c27fc251dad36df3c1 100644
3--- a/plugins/tmux/tmux.plugin.zsh
4+++ b/plugins/tmux/tmux.plugin.zsh
5@@ -36,7 +36,12 @@ fi
6 # Override tmux with our function
7 function zsh_tmux_plugin_start()
8 {
9- if [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]]
10+ # We have other arguments, just run them
11+ if [[ ! -n "$@" ]]
12+ then
13+ \tmux $@
14+ # Try to connect to an existing session.
15+ elif [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]]
16 then
17 \tmux attach || tmux -f $fixed_config new-session
18 [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]] && exit