5 setopt hist_ignore_dups
6 setopt hist_ignore_space
8 setopt inc_append_history
9 setopt extended_history
15 setopt noclobber # don't allow overwriting files with '>', use '>!' instead
17 setopt rcquotes # echo 'don''t'; prints don't
20 bindkey -e # emacs key bindings, vi is weird
21 [[ -r ~/.zsh/bindkeyrc ]] && source ~/.zsh/bindkeyrc
24 zstyle :compinstall filename '/home/ramsi/.zshrc'
25 zstyle ':completion:*' list-colors ''
27 setopt complete_in_word # allow completion in the middle of a word
32 typeset -U path # make path a unique array
33 [[ -d ~/bin ]] && path=(~/bin $path)
36 typeset -U fpath # make fpath a unique array
37 [[ -d ~/.zsh/functions ]] && fpath=(~/.zsh/functions $fpath)
38 autoload -U ${fpath[1]}/*(:t) # loads all functions in the first element of fpath
41 [[ -f ~/.aliasesrc ]] && source ~/.aliasesrc
44 autoload -U colors && colors
45 [[ $(hostname) == "tardis" ]] && hostcolor=red
46 [[ $(hostname) == "shada" ]] && hostcolor=green
47 PROMPT="%(?..%{$fg_bold[white]%}[%?])%{$reset_color%}[%D{%k:%M} %n@%{$fg[$hostcolor]%}%m%{$reset_color%}]%# "
48 RPROMPT="%{$fg[green]%}%~%{$reset_color%}"
50 # make cd act like pushd
51 DIRSTACKSIZE=10 # number of dirs to remember
52 setopt auto_pushd # cd acts like pushd
53 setopt pushd_minus # inverts the meaning of cp -1 and cp +1
54 setopt pushd_silent # don't print dir stack everytime
55 setopt pushd_to_home # pushd with no argumens pushes to ~
56 setopt pushd_ignore_dups # ignore dups in pushd/cd
57 alias dh='dirs -v' # show numbers with dirs
59 setopt auto_cd # if no command matches the input, try to cd into it; .. = cd ..
61 # set search path for cd
64 # set up a few named directories
65 hash -d Skaro=/mnt/Skaro
68 hash -d chroot_testing=/buildsystem/testing/buildroot
69 hash -d chroot_master=/buildsystem/master/buildroot
70 hash -d chroot_lib32=/buildsystem/lib32/buildroot