mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
added custom/screen.zsh
This commit is contained in:
parent
e5e032fa17
commit
1956510a07
1 changed files with 14 additions and 0 deletions
14
custom/screen.zsh
Normal file
14
custom/screen.zsh
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# don't rename screen window
|
||||
case "$TERM" in
|
||||
screen*)
|
||||
preexec () {
|
||||
local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]}
|
||||
# echo -ne "\ek$CMD\e\\"
|
||||
print -Pn "\e]0;%n@%m: $1\a" # xterm
|
||||
}
|
||||
precmd () {
|
||||
# echo -ne "\ekzsh\e\\"
|
||||
print -Pn "\e]0;%n@%m: %~\a" # xterm
|
||||
}
|
||||
;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue