[ADD] Use my own script to display terminal title

The provided 'vte.sh' script  doesn't quite work on Bash because
$HOSTNAME is empty for some reason.
This commit is contained in:
Bruno BELANYI 2019-11-07 14:49:05 +01:00
parent 4df55b8835
commit 173a0b093c
4 changed files with 49 additions and 20 deletions

View file

@ -6,14 +6,8 @@
[[ $- != *i* ]] && return
# 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
if { [[ "$TERM" == xterm-termite ]] || [[ "$TERM" == xterm ]]; }; then
source ~/.scripts/term-title
fi
# Make colorcoding available for everyone