mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-10 04:26:17 +02:00
tmux: fix ineffective "local"
This commit is contained in:
parent
96f217457f
commit
671ec405f7
1 changed files with 2 additions and 4 deletions
|
|
@ -39,8 +39,6 @@ fi
|
||||||
[[ -n "$ZSH_TMUX_FIXTERM_WITH_256COLOR" ]] || ZSH_TMUX_FIXTERM_WITH_256COLOR="screen-256color"
|
[[ -n "$ZSH_TMUX_FIXTERM_WITH_256COLOR" ]] || ZSH_TMUX_FIXTERM_WITH_256COLOR="screen-256color"
|
||||||
|
|
||||||
|
|
||||||
# Get the absolute path to the current directory
|
|
||||||
local zsh_tmux_plugin_path=${0:h}
|
|
||||||
|
|
||||||
# Determine if the terminal supports 256 colors
|
# Determine if the terminal supports 256 colors
|
||||||
if [[ `tput colors` == "256" ]]; then
|
if [[ `tput colors` == "256" ]]; then
|
||||||
|
|
@ -52,10 +50,10 @@ fi
|
||||||
# Set the correct local config file to use.
|
# Set the correct local config file to use.
|
||||||
if [[ "$ZSH_TMUX_ITERM2" != "true" ]] && [[ -f $HOME/.tmux.conf || -h $HOME/.tmux.conf ]]; then
|
if [[ "$ZSH_TMUX_ITERM2" != "true" ]] && [[ -f $HOME/.tmux.conf || -h $HOME/.tmux.conf ]]; then
|
||||||
#use this when they have a ~/.tmux.conf
|
#use this when they have a ~/.tmux.conf
|
||||||
export _ZSH_TMUX_FIXED_CONFIG="$zsh_tmux_plugin_path/tmux.extra.conf"
|
export _ZSH_TMUX_FIXED_CONFIG="${0:h}/tmux.extra.conf"
|
||||||
else
|
else
|
||||||
#use this when they don't have a ~/.tmux.conf
|
#use this when they don't have a ~/.tmux.conf
|
||||||
export _ZSH_TMUX_FIXED_CONFIG="$zsh_tmux_plugin_path/tmux.only.conf"
|
export _ZSH_TMUX_FIXED_CONFIG="${0:h}/tmux.only.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Wrapper function for tmux.
|
# Wrapper function for tmux.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue