New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Honor ZSH_TMUX_ITERM2 for new-session and attach #4422
base: master
Are you sure you want to change the base?
Conversation
@@ -60,8 +60,12 @@ if which tmux &> /dev/null | |||
# Wrapper function for tmux. | |||
function _zsh_tmux_plugin_run() | |||
{ | |||
# We attach to existing or start new session | |||
if [[ -n "${@[(r)attach]}" || -n "${@[(r)new-session]}" ]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might also want to check for the attach-session
and new
command aliases.
Should this be picking up the "ZSH_TMUX_FIXTERM
stuff too, so it matches the attach/new-session behavior of the other branches?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's possible to make this into a one conditional with |
:
if [[ -n "${@[(r)attach|attach-session|new|new-session]}" ]]
Yes, this is a bug for all tmux command alias such as |
@shaxbee Can you please rebase this PR onto our latest master branch. Then update this PR with a Commit please? Thank You! |
Any updates on this? |
Option ZSH_TMUX_ITERM2 is not taking effect when attaching to or creating new session.
The fix is to scan arguments passed to tmux for new-session and attach and inject '-CC' option when eligible.