diff options
author | Brandon Philips <brandon@ifup.org> | 2010-10-08 22:44:42 -0700 |
---|---|---|
committer | Brandon Philips <brandon@ifup.org> | 2010-10-08 22:55:09 -0700 |
commit | aab235f6121a93b81a425d522a0c7f2aaac946bd (patch) | |
tree | 851276ef64c8e59713f9ddc6084b08e576b53f51 /.gitignore | |
parent | 541da0c9d1cdf88583490fa06b6e307ea09bfc94 (diff) | |
download | zsh-aab235f6121a93b81a425d522a0c7f2aaac946bd.tar.gz zsh-aab235f6121a93b81a425d522a0c7f2aaac946bd.tar.bz2 zsh-aab235f6121a93b81a425d522a0c7f2aaac946bd.zip |
functions: fix title() to not match any $TERM
On my linux virtual terminals, where TERM="linux", I was getting
annoying output that was messing up my prompt.
It turns out the title function was always matching on the elif
statement for xterm/rxvt no matter what and the linux vt doesn't know
what to do with the title special control sequence and thus was printing
out garbage.
Through experimentation I figured out that the || inside of the [[ ]]
did not work:
export TERM=linux
$ if [[ $TERM =~ "^xterm" || $TERM == "rxvt" ]]; then echo $TERM; fi
linux
$ if [[ $TERM =~ "^xterm" ]] || [[ $TERM == "rxvt" ]]; then echo $TERM; fi
Signed-off-by: Brandon Philips <brandon@ifup.org>
openSUSE running zsh 4.3.10
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions