Commit graph

8 commits

Author SHA1 Message Date
Brandon Philips e7ddaaa2b0 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
2010-10-08 22:44:42 -07:00
Trevor Creech 36bc60455b Match xterm-color, the default OS X terminal 2010-09-20 17:31:17 -07:00
Robby Russell a77aceaf5e Moving some rails and osx-specific functions to their corresponding plugin files 2010-06-03 12:55:07 -07:00
Robby Russell 210a72b441 Initial implementation of a new plugin system, so that people can managed which aliases/functions they want. 2010-06-03 12:03:26 -07:00
Dale Campbell a8367b0df5 adding quotes to tab() 2009-12-26 00:41:37 -06:00
Robby Russell 4e57305bdd Adding a function that will open up a ticket in Lighthouse based on the number and there being a URL in a hidden file. 2009-12-16 11:23:41 -08:00
James Cox fdffd77e9c merge upstream 2009-09-23 16:14:04 +01:00
Robby Russell 8dd06e3c73 Moving all zsh config options into a lib/ subdirectory to make way for some upcoming changes to directory structure and configuration options 2009-09-23 07:43:36 -07:00
Renamed from functions.zsh (Browse further)