mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Allow passing arbitrary options through to tmux.
This commit is contained in:
parent
6fb82113d2
commit
9b972c3763
1 changed files with 3 additions and 0 deletions
|
|
@ -24,6 +24,8 @@ if which tmux &> /dev/null
|
|||
[[ -n "$ZSH_TMUX_FIXTERM" ]] || ZSH_TMUX_FIXTERM=true
|
||||
# Set '-CC' option for iTerm2 tmux integration
|
||||
[[ -n "$ZSH_TMUX_ITERM2" ]] || ZSH_TMUX_ITERM2=false
|
||||
# Extra options to pass through to tmux
|
||||
[[ -n "$ZSH_TMUX_OPTIONS" ]] || ZSH_TMUX_OPTIONS=""
|
||||
# The TERM to use for non-256 color terminals.
|
||||
# Tmux states this should be screen, but you may need to change it on
|
||||
# systems without the proper terminfo
|
||||
|
|
@ -59,6 +61,7 @@ if which tmux &> /dev/null
|
|||
function _zsh_tmux_plugin_run()
|
||||
{
|
||||
# Construct options.
|
||||
tmux_options=($ZSH_TMUX_OPTIONS)
|
||||
[[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_options+=("-CC")
|
||||
[[ "$ZSH_TMUX_FIXTERM" == "true" ]] && tmux_options+=("-f" "$_ZSH_TMUX_FIXED_CONFIG")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue