mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 05:40:08 +00:00
Now checking for 256 color terminal in tmux plugin.
This commit is contained in:
parent
26ee66f179
commit
3aef6793c2
1 changed files with 8 additions and 0 deletions
|
@ -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=""
|
||||
|
||||
|
|
Loading…
Reference in a new issue