Skip to content

Instantly share code, notes, and snippets.

@OskarStark
Created March 22, 2012 09:35
Show Gist options
  • Save OskarStark/2157348 to your computer and use it in GitHub Desktop.
Save OskarStark/2157348 to your computer and use it in GitHub Desktop.
My ZSH configuration
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
export ZSH_THEME="robbyrussell"
# Set to this to use case-sensitive completion
# export CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# export DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# export DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# export DISABLE_AUTO_TITLE="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git)
source $ZSH/oh-my-zsh.sh
# History
HISTFILE=~/.zshistory
HISTSIZE=2000
SAVEHIST=2000
setopt appendhistory
setopt sharehistory
setopt hist_ignore_all_dups
setopt hist_ignore_space
setopt autocd
# Completion
zstyle ':completion:*:descriptions' format '%U%B%d%b%u'
zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b'
unsetopt correctall
# Key Bindings
bindkey '^[OH' beginning-of-line
bindkey '^[OF' end-of-line
bindkey '^[[3~' delete-char
# Aliases
alias ..="cd .."
alias df="df -Ph"
alias du="du -h"
alias ls="ls --color"
alias ll="ls --color=always -lh"
alias la="ls --color=always -lha"
alias less="less -R"
alias grep="grep --color=auto"
alias exit="clear && exit"
alias su="sudo su"
alias gvim="gvim -p"
alias vim="vim -p"
alias diff=colordiff
alias diffstat="diffstat -f2 -r2"
alias php-5.2=/usr/local/php-5.2/bin/php
alias php-5.3=/usr/local/php-5.3/bin/php
alias php-5.4=/usr/local/php-5.4/bin/php
# Aliases for development
alias phpunit=/usr/local/src/phpunit/phpunit.php
alias phploc="/usr/local/php-5.3.6/bin/php /usr/local/src/phploc/phploc.php"
alias phpcpd="/usr/local/php-5.3.6/bin/php /usr/local/src/phpcpd/phpcpd.php"
alias bytekit="/usr/local/php-5.3.6/bin/php /usr/local/src/bytekit-cli/bytekit.php"
alias phpdcd="/usr/local/php-5.3.6/bin/php /usr/local/src/phpdcd/phpdcd.php"
alias phpcb="/usr/local/php-5.3.6/bin/php /usr/local/src/phpcb/bin/phpcb.php"
alias phpdep="/usr/local/php-5.3.6/bin/php /usr/local/src/phpdep/phpdep.php"
alias xt2dot="/usr/local/php-5.3.6/bin/php /usr/local/src/xdebug-trace-tools/xt2dot.php"
alias xtdiff="/usr/local/php-5.3.6/bin/php /usr/local/src/xdebug-trace-tools/xtdiff.php"
alias phpcov=/usr/local/src/code-coverage/phpcov.php
alias phptok="/usr/local/php-5.3.6/bin/php /usr/local/src/tokenstream/phptok.php"
alias bugminer=/usr/local/src/bugminer/bugminer.php
alias ppw=/usr/local/src/ppw/ppw.php
alias ptrace="php -d xdebug.auto_trace=1 -d xdebug.trace_output_dir=`pwd`"
alias pprofile="php -d xdebug.profiler_enable=1 -d xdebug.profiler_output_dir=`pwd`"
alias pylot="python /usr/local/pylot/run.py"
# CFLAGS
export CFLAGS="-march=native -mtune=native -O2 -fPIC -pipe"
export CXXFLAGS=$CFLAGS
# Environment Variables
export EDITOR=vim
export JAVA_HOME=/usr
export CVS_RSH=ssh
export PATH=/usr/local/php-5.4/bin:/usr/lib/libming/bin:/var/lib/gems/1.8/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment