mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-05-24 16:38:41 +00:00
normalize this case stuff
This commit is contained in:
parent
48be7f8718
commit
20d5cd73f9
1 changed files with 18 additions and 15 deletions
9
zshrc
9
zshrc
|
@ -262,17 +262,20 @@ preexec()
|
||||||
|
|
||||||
function title
|
function title
|
||||||
{
|
{
|
||||||
if [[ $TERM == screen* ]]; then
|
case $TERM in
|
||||||
|
screen*)
|
||||||
# Use these two for GNU Screen:
|
# Use these two for GNU Screen:
|
||||||
print -nR $'\ek'$1$'\e'"\\"
|
print -nR $'\ek'$1$'\e'"\\"
|
||||||
shift
|
shift
|
||||||
# print -nR $'\e]0;'$*$'\a'
|
# print -nR $'\e]0;'$*$'\a'
|
||||||
print -nR $'\e_screen \005 | '$*$'\e'"\\"
|
print -nR $'\e_screen \005 | '$*$'\e'"\\"
|
||||||
elif [[ $TERM == xterm* || $TERM == rxvt* ]]; then
|
;;
|
||||||
|
xterm*|rxvt*|cygwin)
|
||||||
# Use this one instead for XTerms:
|
# Use this one instead for XTerms:
|
||||||
shift
|
shift
|
||||||
print -nR $'\e]0;'$@$'\a'
|
print -nR $'\e]0;'$@$'\a'
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
# completion menu
|
# completion menu
|
||||||
|
|
Loading…
Add table
Reference in a new issue