[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.
This commit is contained in:
Bruno BELANYI 2019-11-04 17:52:30 +01:00
parent f5c1d37ca3
commit da66b21004
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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 ?