3aef6793c2bf0c0afec1fdb97a3a56e7f8d065c6

Author
Josh Matthews <jmatth@nbcs.rutgers.edu>
Committer
Josh Matthews <jmatth@nbcs.rutgers.edu>
Date

Message

Now checking for 256 color terminal in tmux plugin.

Diff

 1diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
 2index a2f36c0be01e007712d252a084e88baebc16efbf..f67c2b8b54082575552c72c4b6bac3a6713e1508 100644
 3--- a/plugins/tmux/tmux.plugin.zsh
 4+++ b/plugins/tmux/tmux.plugin.zsh
 5@@ -11,6 +11,14 @@
 6 # Get the absolute path to the current directory
 7 local zsh_tmux_plugin_path="$(cd "$(dirname "$0")" && pwd)"
 8 
 9+# Determine if the terminal supports 256 colors
10+if [[ `tput colors` == "256" ]]
11+then
12+	export $ZSH_TMUX_TERM="screen-256"
13+else
14+	export $ZSH_TMUX_TERM="screen"
15+fi
16+
17 # Local variable to store the local config file to use, if any.
18 local fixed_config=""
19