rendered paste body#
# .zshrc is sourced in interactive shells.
# It should contain commands to set up aliases,
# functions, options, key bindings, etc.
#
#
# Completion Stuff
#
# Autoload completion.
autoload -U compinit
compinit
# Add completion for new commands.
_force_rehash() {
(( CURRENT == 1 )) && rehash
return 1 # Because we didn't really complete anything.
}
zstyle ':completion:*' completer _force_rehash _complete
#
# Misc.
#
# Make M-e edit your command-line using your $EDITOR.
autoload -U edit-command-line
zle -N edit-command-line
bindkey '\ee' edit-command-line
#
# Parameters
#
PROMPT=$'%{\e[1;36m%}%n@%m%{\e[0;37m%}:%{\e[1;34m%}%1~ %{\e[0;35m%}%# %{\e[0m%}'
RPROMPT=''
DIRSTACKSIZE=25
HISTSIZE=1000
SAVEHIST=2000
HISTFILE=$HOME/.zsh_history
#
# Aliases
#
alias find='noglob find'
alias rm='rm -i'
alias pg_start='pg_ctl -l $PGLOG start'
alias pg_stop='pg_ctl -l $PGLOG -m fast stop'
alias pg_restart='pg_stop && pg_start'
alias pg_reload='pg_ctl -l $PGLOG reload'
alias skype='$HOME/skype/skype &'
alias iaxcomm='$HOME/iaxcomm/iaxcomm &'
alias xten='$HOME/xten-xlite/xtensoftphone &'
#
# Options
#
# Changing Directories
setopt autocd autopushd pushdignoredups
# Completion
setopt completeinword