root/env/.zshrc

Revision 3, 1.1 kB (checked in by devja..@anarkystic.com, 1 year ago)

sendin the env down the rivarr

Line 
1 #
2 #   termie's zsh interactive stuffs
3 #
4
5 # these are old, not sure why they are still around
6 #PROMPT="$(print '%{\e[1;31m%}%m%{\e[0m%} %{\e[1;34m%}%n%{\e[0m%}:%~%(!.#.>) ')"
7 #RPROMPT="[%D{%Y%m%d.%H%M%S}]"
8
9 # prompt config
10 # should look something like "andy@ptero: ~ %"
11 PROMPT=$'%(!.%{\e[0;31m%}.%{\e[0;32m%})%n@%m%{\e[0m%}:%3c %(!.#.%%) '
12 # change the window titles when appropriate...
13 case $TERM in (xterm*|rxvt)
14     precmd () { print -Pn "\e]0;%n@%m:%~\a" }
15     preexec () { print -Pn "\e]0;%n@%m: $1\a" }
16     ;;
17 esac
18
19
20 ## zsh completions
21 autoload -U compinit promptinit
22 compinit
23 promptinit
24
25 unsetopt promptcr
26 bindkey -e
27
28 # completion cache
29 zstyle ':completion::complete:*' use-cache 1
30
31 [ -f $HOME/.commonrc ] && source $HOME/.commonrc
32
33 # darwin stuff
34 if [ $T_PLATFORM = "Darwin" ]; then
35     # my pleasant little colorization script,
36     # only really works with the mac, but could
37     # do the same thing on a linux desktop
38     # thanks for the idea robin
39     if [ $TERM_PROGRAM = "iTerm.app" ]; then
40         [ -f "$HOME/bin/$T_PLATFORM/c" ] && source $HOME/bin/$T_PLATFORM/c
41     fi
42 fi
Note: See TracBrowser for help on using the browser.