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 PROMPT="%(?..%{$fg_bold[white]%}[%?])%{$reset_color%}[%D{%k:%M} %n@%{$fg[green]%}%m%{$reset_color%}]%# "
46 RPROMPT="%{$fg[green]%}%~%{$reset_color%}"
48 # make cd act like pushd
49 DIRSTACKSIZE=10 # number of dirs to remember
50 setopt auto_pushd # cd acts like pushd
51 setopt pushd_minus # inverts the meaning of cp -1 and cp +1
52 setopt pushd_silent # don't print dir stack everytime
53 setopt pushd_to_home # pushd with no argumens pushes to ~
54 setopt pushd_ignore_dups # ignore dups in pushd/cd
55 alias dh='dirs -v' # show numbers with dirs
57 setopt auto_cd # if no command matches the input, try to cd into it; .. = cd ..
59 # set search path for cd
62 # set up a few named directories
63 hash -d Skaro=/mnt/Skaro
66 hash -d chroot_testing=/buildsystem/testing/buildroot
67 hash -d chroot_master=/buildsystem/master/buildroot
68 hash -d chroot_lib32=/buildsystem/lib32/buildroot