[FIX] Xterm window title for Zsh and Bash
The escape sequence to display a title for Xterm and Termite is the same, and the export for the current directory does not seem to have any negative impact on Xterm. The VTE script uses `$HOSTNAME` which is a bashism for `$HOST`, so this needs a correction in my shell profile.
This commit is contained in:
parent
d9eab5526f
commit
c56455f851
|
@ -6,7 +6,7 @@
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
# Export our directory to Termite for opening new terminals
|
# Export our directory to Termite for opening new terminals
|
||||||
if [[ $TERM == xterm-termite ]]; then
|
if [[ "$TERM" == xterm-termite ]] || [[ "$TERM" == xterm ]]; then
|
||||||
. /etc/profile.d/vte.sh
|
. /etc/profile.d/vte.sh
|
||||||
__vte_prompt_command
|
__vte_prompt_command
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -45,6 +45,9 @@ if { [ -n "$BASH_VERSION" ] && shopt -q login_shell; } ||
|
||||||
|
|
||||||
# Use my preferred pager settings for bat
|
# Use my preferred pager settings for bat
|
||||||
export BAT_PAGER="$PAGER $LESS"
|
export BAT_PAGER="$PAGER $LESS"
|
||||||
|
|
||||||
|
# Fix terminal title which uses HOSTNAME instead of HOST
|
||||||
|
export HOSTNAME="$HOST"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use keychain to handle ssh-agent, in interactive shell too
|
# Use keychain to handle ssh-agent, in interactive shell too
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Export our directory to Termite for opening new terminals
|
# Export our directory to Termite for opening new terminals
|
||||||
if [[ $TERM == xterm-termite ]]; then
|
if [[ "$TERM" == xterm-termite ]] || [[ "$TERM" == xterm ]]; then
|
||||||
. /etc/profile.d/vte.sh
|
. /etc/profile.d/vte.sh
|
||||||
__vte_osc7
|
__vte_osc7
|
||||||
precmd_functions+=(__vte_prompt_command) # FIXME: why isn't it set above ?
|
precmd_functions+=(__vte_prompt_command) # FIXME: why isn't it set above ?
|
||||||
|
|
Loading…
Reference in a new issue