Skip to content

Instantly share code, notes, and snippets.

@braden
Created October 8, 2010 18:24
Show Gist options
  • Save braden/617270 to your computer and use it in GitHub Desktop.
Save braden/617270 to your computer and use it in GitHub Desktop.
# Shell options
setopt autocd # automatically cd to a directory if not cmd
setopt autopushd # automatically pushd directories on dirstack
setopt nopushdsilent # print dirstack after each cd/pushd
setopt pushdignoredups # don't push dups on stack
setopt correct # try to correct spelling...
setopt no_correctall # ...only for commands, not filenames
setopt no_listbeep # don't beep on ambiguous listings
setopt listpacked # variable col widths (takes up less space)
export HISTFILE="$ZDOTDIR/zhistory" # save history
export HISTSIZE=200000 # huge internal buffer
export SAVEHIST=200000 # huge history file
setopt extendedhistory # save timestamps in history
setopt no_histbeep # don't beep for erroneous history expansions
setopt histignoredups # ignore consecutive dups in history
setopt histfindnodups # backwards search produces diff result each time
setopt histreduceblanks # compact consecutive white space chars (cool)
setopt histnostore # don't store history related functions
setopt incappendhistory # incrementally add items to HISTFILE
# Load the prompt theme system
autoload -U promptinit
promptinit
zstyle ':completion:*' format '%SCompleting %U%d%u%s'
zstyle :completion::complete:cd:: tag-order \
local-directories path-directories
# The following lines were added by compinstall
zstyle ':completion:*' auto-description 'specify %d:'
zstyle ':completion:*' completer _expand _complete _files
zstyle ':completion:*' expand prefix
#zstyle ':completion:*' format 'Complete %d:'
zstyle ':completion:*' group-name ''
#zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' list-suffixes true
zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'r:|[._-]=* r:|=*' 'r:|[._-]=* r:|=*' 'r:|[._-]=* r:|=*'
#zstyle ':completion:*' max-errors 2
zstyle ':completion:*' menu select=0
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' verbose true
zstyle :compinstall filename "$ZDOTDIR/zshrc"
autoload -Uz compinit
compinit
# End of lines added by compinstall
# 10. SSH Keychain
# ================
# OS X includes keychain now, cool.
if which keychain >/dev/null 2>&1; then
keychain ~/.ssh/id_rsa
source ~/.keychain/${KEYCHAIN_HOST}-sh > /dev/null
fi
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set to the name theme to load.
# Look in ~/.oh-my-zsh/themes/
export ZSH_THEME="braden"
#export ZSH_THEME="maran"
# Comment this out to disable weekly auto-update checks
# export DISABLE_AUTO_UPDATE="false"
plugins=(git osx ruby)
source $ZSH/oh-my-zsh.sh
#--------------------------------------------------------
alias ls='ls -hFG'
alias ll='ls -lhFG'
alias l='ls -lAhFG'
alias cd..="cd .."
alias c="clear"
alias e="exit"
alias ssh="ssh -X"
alias ..="cd .."
alias gits='git status -s'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment