Created
September 8, 2009 09:58
-
-
Save riffm/182822 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoload -U compinit | |
compinit -C | |
zstyle ':completion:*' menu yes select | |
zstyle ':completion:*:(ssh|scp):*:users' ignored-patterns `cat /etc/passwd | awk -F ":" '{ if($3<1000) print $1 }'` | |
zstyle ':completion:*:processes' command 'ps xua' | |
zstyle ':completion:*:processes' sort false | |
zstyle ':completion:*:processes-names' command 'ps xho command' | |
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' | |
eval `dircolors` | |
alias ls='ls --color=auto' | |
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} | |
export GREP_OPTIONS='--color=auto' | |
export GREP_COLOR='1;32' | |
PS1='%T %m%# ' | |
PS2='> ' | |
RPROMPT='%~' | |
RPROMPT="%{$fg_bold[grey]%}%~/ %{$reset_color%}% %(?,%{$fg[green]%}:%)%{$reset_color%},%{$fg[red]%}:(%{$reset_color%}" | |
case $TERM in | |
xterm*|rxvt) | |
precmd () { print -Pn "\e]0;%n@%m: %~\a" } | |
preexec () { print -Pn "\e]0;%n@%m: $1\a" } | |
;; | |
screen) | |
precmd () { print -Pn "\033k%~\033\\" } | |
preexec () { print -Pn "\033k$1\033\\" } | |
;; | |
esac | |
setopt NO_BEEP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment