Commit Graph
3 Commits
Author SHA1 Message Date
Brandon Philips 8b4858b664 themes: philips customize git/ls for developers
- Customize LS_COLORS for developers working on C code bases like the
  Kernel.
- Add a * to the dirty prompt. Missed this accidently. Oops.

Signed-off-by: Brandon Philips <brandon@ifup.org>
2010-10-09 17:43:38 -07:00
Brandon Philips df1e305736 themes: add philips theme
Theme based on clean that is more suitable for white background
terminals.

Signed-off-by: Brandon Philips <brandon@ifup.org>
2010-10-08 22:59:22 -07:00
Brandon Philips aab235f612 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:55:09 -07:00