From da66b2100402bfd1b5c85d08b9e4012731bd0c1e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 4 Nov 2019 17:52:30 +0100 Subject: [PATCH] [FIX] Make window title script work with Xterm This is quite an awful hack, but I don't want to copy paste the script to my dot-files instead, so this will do. --- bash/.bashrc | 4 ++++ zsh/.zshrc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/bash/.bashrc b/bash/.bashrc index 54da571..a3d8993 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -8,6 +8,10 @@ # Export our directory to Termite for opening new terminals if { [[ "$TERM" == xterm-termite ]] || [[ "$TERM" == xterm ]]; } && [ -r /etc/profile.d/vte.sh ]; then + if [[ "$TERM" == xterm ]]; then # FIXME: hack to make Xterm work + VTE_VERSION="${VTE_VERSION:-3405}" + fi + . /etc/profile.d/vte.sh __vte_prompt_command fi diff --git a/zsh/.zshrc b/zsh/.zshrc index 7453657..28fe171 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,6 +1,10 @@ # Export our directory to Termite for opening new terminals if { [[ "$TERM" == xterm-termite ]] || [[ "$TERM" == xterm ]]; } && [ -r /etc/profile.d/vte.sh ]; then + if [[ "$TERM" == xterm ]]; then # FIXME: hack to make Xterm work + VTE_VERSION="${VTE_VERSION:-3405}" + fi + . /etc/profile.d/vte.sh __vte_osc7 precmd_functions+=(__vte_prompt_command) # FIXME: why isn't it set above ?