feat: terminal multiplexing and vterm

This commit is contained in:
Leon Schwarzäugl 2024-09-01 22:27:07 +02:00
parent 23e1f73ce9
commit eab9e040aa
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
10 changed files with 961 additions and 11 deletions

View file

@ -49,6 +49,18 @@
initExtra = ''
bindkey "^[[1;5D" backward-word
bindkey "^[[1;5C" forward-word
vterm_printf() {
if [ -n "$TMUX" ] && ([ "''${TERM%%-*}" = "tmux" ] || [ "''${TERM%%-*}" = "screen" ]); then
# Tell tmux to pass the escape sequences through
printf "\ePtmux;\e\e]%s\007\e\\" "$1"
elif [ "''${TERM%%-*}" = "screen" ]; then
# GNU screen (screen, screen-256color, screen-256color-bce)
printf "\eP\e]%s\007\e\\" "$1"
else
printf "\e]%s\e\\" "$1"
fi
}
'';
};
}