Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
69 lines (50 sloc) 1.71 KB
# Load all my files
for config_file ($HOME/.zsh/*.zsh) source $config_file
## Command history configuration
setopt append_history
setopt extended_history
setopt hist_expire_dups_first
setopt hist_ignore_dups # ignore duplication command history list
setopt hist_ignore_space
setopt inc_append_history
setopt share_history # share command history data
# Changing/making/removing directory
setopt auto_pushd
setopt pushd_ignore_dups
# private configs
if [ -f $HOME/.zshrc_private ]; then
source $HOME/.zshrc_private
export CDPATH=:$HOME/code:$HOME/code/src/
export CDPATH=$CDPATH:$HOME/code/src/
# LS colors
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
export GREP_COLOR='1;32'
export GREP_OPTIONS=--color=auto
# Of course
export EDITOR=vim
export PATH=.:./bin:$HOME/bin:/usr/local/bin:/usr/local/sbin:$PATH
export PATH=/usr/local/opt/coreutils/libexec/gnubin::$PATH
export PATH=$PATH:/Applications/
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
export GOPATH=$HOME/code
export GOBIN=$HOME/bin
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
# Use a menu for multiple options
zstyle ':completion:*:*:*:*:*' menu select
fpath=(~/.zsh/completions /usr/local/share/zsh-completions $fpath)
# Load the completion system
autoload -U compinit
compdef g=git
compdef hub=git
source /usr/local/share/chruby/
source /usr/local/share/chruby/
precmd_functions+=("chruby_auto") # correctly show the ruby version in the prompt
# complete versions, thanks to @sickill
compctl -g '~/.rubies/*(:t)' chruby
Something went wrong with that request. Please try again.