diff options
author | Josh Matthews <jmatth@nbcs.rutgers.edu> | 2013-02-26 18:05:58 -0500 |
---|---|---|
committer | Josh Matthews <jmatth@nbcs.rutgers.edu> | 2013-02-26 22:29:26 -0500 |
commit | 3aef6793c2bf0c0afec1fdb97a3a56e7f8d065c6 (patch) | |
tree | 588ea6d24d5ad2ecc46bb19a61958c88d3094604 /plugins | |
parent | 26ee66f179be08fab59d41a0522ad51610125c6c (diff) | |
download | zsh-3aef6793c2bf0c0afec1fdb97a3a56e7f8d065c6.tar.gz zsh-3aef6793c2bf0c0afec1fdb97a3a56e7f8d065c6.tar.bz2 zsh-3aef6793c2bf0c0afec1fdb97a3a56e7f8d065c6.zip |
Now checking for 256 color terminal in tmux plugin.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/tmux/tmux.plugin.zsh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index a2f36c0be..f67c2b8b5 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -11,6 +11,14 @@ # Get the absolute path to the current directory local zsh_tmux_plugin_path="$(cd "$(dirname "$0")" && pwd)" +# Determine if the terminal supports 256 colors +if [[ `tput colors` == "256" ]] +then + export $ZSH_TMUX_TERM="screen-256" +else + export $ZSH_TMUX_TERM="screen" +fi + # Local variable to store the local config file to use, if any. local fixed_config="" |