[FIX] Check if TERM is 'xterm-.*' in Bash & Zsh

This commit is contained in:
Bruno BELANYI 2019-11-07 15:03:59 +01:00
parent 2e927c89e7
commit 351fe7e95a
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@
[[ $- != *i* ]] && return
# Export our directory to Termite for opening new terminals
if { [[ "$TERM" == xterm-termite ]] || [[ "$TERM" == xterm ]]; }; then
if { [[ "$TERM" =~ xterm.* ]]; }; then
source ~/.scripts/term-title
fi

View file

@ -1,5 +1,5 @@
# Export our directory to Termite for opening new terminals
if { [[ "$TERM" == xterm-termite ]] || [[ "$TERM" == xterm ]]; }; then
if { [[ "$TERM" =~ xterm.* ]]; }; then
source ~/.scripts/term-title
fi