diff options
author | Josh Matthews <jmatth@nbcs.rutgers.edu> | 2013-02-26 18:08:37 -0500 |
---|---|---|
committer | Josh Matthews <jmatth@nbcs.rutgers.edu> | 2013-02-26 22:29:26 -0500 |
commit | 0cf871d51299a4f837e6dce4d4ae827b0c09f5bd (patch) | |
tree | 686f725aba4f0eec97fcc4ca1ad634d1102f3295 /plugins/tmux | |
parent | 778ae57772a02d11c393708c4c0644fbd1ffac35 (diff) | |
download | zsh-0cf871d51299a4f837e6dce4d4ae827b0c09f5bd.tar.gz zsh-0cf871d51299a4f837e6dce4d4ae827b0c09f5bd.tar.bz2 zsh-0cf871d51299a4f837e6dce4d4ae827b0c09f5bd.zip |
Adding comments to tmux plugin.
Diffstat (limited to 'plugins/tmux')
-rw-r--r-- | plugins/tmux/tmux.plugin.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index d8fdd9255..48ffc1c27 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -27,8 +27,10 @@ if [[ "$ZSH_TMUX_FIXTERM" == "true" ]] then if [[ -f $HOME/.tmux.conf || -h $HOME/.tmux.conf ]] then + #use this when they have a ~/.tmux.conf fixed_config=$zsh_tmux_plugin_path/tmux.extra.conf else + #use this when they don't have a ~/.tmux.conf fixed_config=$zsh_tmux_plugin_path/tmux.only.conf fi fi @@ -45,6 +47,7 @@ function zsh_tmux_plugin_start() then \tmux attach || tmux -f $fixed_config new-session [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]] && exit + # Just try to fix the TERM variable. else \tmux -f $fixed_config [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]] && exit |