# .zshrc setopt CSH_NULL_GLOB setopt SHARE_HISTORY setopt EXTENDED_HISTORY setopt HIST_IGNORE_ALL_DUPS setopt HIST_REDUCE_BLANKS setopt HIST_IGNORE_SPACE setopt HIST_NO_FUNCTIONS setopt NO_HIST_BEEP setopt PROMPT_SUBST # prompt autoload -U promptinit promptinit # Set up the prompt with the function function setprompt(){ if [ "$UID" = '0' ]; then prompt ${=root_prompt} else case "$HOSTNAME" in host1) prompt ${=erisia_prompt} ;; host2) prompt ${=fortapache_prompt} ;; host3) prompt ${=virtualhumanity_prompt} ;; *) prompt ${=erisia_prompt} ;; esac fi } setprompt # Set up other host specific stuff case "$HOSTNAME" in host1) # host1 specific settings ;; host2) # host2 specific settings ;; esac # Initialize completions autoload -U compinit compinit # Stuff for zftp zmodload zsh/zftp autoload -U zfinit zfinit # zsh on OpenBSD doesn't like --color if [ "$(uname)" = 'Linux' ]; then alias ls='ls --color' fi # Gotta love vi command line editing :) bindkey -v # Some useful functions function findsuid() { ls -l /**/*(su0x) }