dotfiles/config/zsh
Fernando Schauenburg fb1b6a3bda zsh: fix changing cursor shape in tmux + iTerm2
Most terminals use the VT520 DECSCUSR escape sequences for setting the
cursor shape, documented at:

    https://invisible-island.net/xterm/ctlseqs/ctlseqs.txt

iTerm2, however, uses a set of proprietary escape codes, documented at:

    https://iterm2.com/documentation-escape-codes.html

The issue I had was that tmux recognizes the VT520 DECSCUSR codes and
knows how to translate them itself to iTerm2. But tmux does not accept
the iTerm2 codes as input, so deciding to use these proprietary codes
only based on the presence of `$ITERM_SESSION_ID` did not work when
running tmux. The solution is to revert to the VT520 codes when running
inside of tmux (even inside iTerm2) and let it translate to iTerm2.
2022-11-18 20:34:32 +01:00
..
.zprofile zsh: make `~/.zshenv' as small as possible 2022-10-21 20:16:10 +02:00
.zshrc zsh: refactor configuration with focus on interactive shells 2022-10-21 19:59:16 +02:00
aliases.zsh zsh: refactor configuration with focus on interactive shells 2022-10-21 19:59:16 +02:00
completion.zsh zsh: refactor configuration with focus on interactive shells 2022-10-21 19:59:16 +02:00
env.zsh zsh: refactor configuration with focus on interactive shells 2022-10-21 19:59:16 +02:00
history.zsh zsh: refactor configuration with focus on interactive shells 2022-10-21 19:59:16 +02:00
prompt.zsh zsh: refactor configuration with focus on interactive shells 2022-10-21 19:59:16 +02:00
vi-mode.zsh zsh: fix changing cursor shape in tmux + iTerm2 2022-11-18 20:34:32 +01:00