mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-23 11:12:48 +01:00
zshrc: comment dynamic title changing
it breaks tmux title changing which is better.
This commit is contained in:
parent
9b8c67d917
commit
484e60d318
15
rc/zshrc
15
rc/zshrc
@ -9,19 +9,20 @@ uname=$(uname)
|
|||||||
UNAME=$(uname)
|
UNAME=$(uname)
|
||||||
|
|
||||||
# Dynamic window title via https://stackoverflow.com/a/20772424
|
# Dynamic window title via https://stackoverflow.com/a/20772424
|
||||||
case $TERM in
|
## BREAKS TMUX TITLE CHANGING WHICH IS BETTER THAN THIS.
|
||||||
(*xterm* | *rxvt*)
|
#case $TERM in
|
||||||
|
# (*xterm* | *rxvt*)
|
||||||
|
|
||||||
# Write some info to terminal title.
|
# Write some info to terminal title.
|
||||||
# This is seen when the shell prompts for input.
|
# This is seen when the shell prompts for input.
|
||||||
function precmd {
|
# function precmd {
|
||||||
print -Pn "\e]0;zsh%L %(1j,%j job%(2j|s|); ,)%~\a"
|
# print -Pn "\e]0;zsh%L %(1j,%j job%(2j|s|); ,)%~\a"
|
||||||
}
|
}
|
||||||
# Write command and args to terminal title.
|
# Write command and args to terminal title.
|
||||||
# This is seen while the shell waits for a command to complete.
|
# This is seen while the shell waits for a command to complete.
|
||||||
function preexec {
|
# function preexec {
|
||||||
printf "\033]0;%s\a" "$1"
|
# printf "\033]0;%s\a" "$1"
|
||||||
}
|
# }
|
||||||
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user