[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:
parent
4df55b8835
commit
173a0b093c
4 changed files with 49 additions and 20 deletions
11
zsh/.zshrc
11
zsh/.zshrc
|
|
@ -1,13 +1,6 @@
|
|||
# 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 ?
|
||||
if { [[ "$TERM" == xterm-termite ]] || [[ "$TERM" == xterm ]]; }; then
|
||||
source ~/.scripts/term-title
|
||||
fi
|
||||
|
||||
# History configuration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue