From 351fe7e95a228ee343a6ceb4354114cfef0dd97a Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 7 Nov 2019 15:03:59 +0100 Subject: [PATCH] [FIX] Check if TERM is 'xterm-.*' in Bash & Zsh --- bash/.bashrc | 2 +- zsh/.zshrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bash/.bashrc b/bash/.bashrc index dd55ec8..4229b42 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -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 diff --git a/zsh/.zshrc b/zsh/.zshrc index e5c6bcb..b95427b 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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