Skip to content

Instantly share code, notes, and snippets.

@binarycleric
Created October 17, 2012 21:03
Show Gist options
  • Save binarycleric/3908169 to your computer and use it in GitHub Desktop.
Save binarycleric/3908169 to your computer and use it in GitHub Desktop.
ZSH Config
# Path to your oh-my-zsh configuration.
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.
ZSH_THEME="derp"
# Example aliases
alias zshconfig="vim ~/.zshrc"
alias ohmyzsh="vim ~/.oh-my-zsh"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
DISABLE_AUTO_TITLE=true
# Uncomment following line if you want red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git ruby rvm osx)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
export PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/Users/jon/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/jon/.rvm/bin:/usr/local/mysql/bin
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
export EDITOR=vim
export GUI_EDITOR=mvim
export CLICOLOR=1
alias rspec="rspec --color"
alias fluttershy="tree"
alias boop="touch"
alias house='mpg123 -@ http://etn.fm/playlists/etn2beta.m3u'
alias trance='mpg123 -@ http://etn.fm/playlists/etn1beta.m3u'
alias drumnbass='mpg123 -@ http://www.bassdrive.com/v2/streams/BassDrive.pls'
alias durrstep='mpg123 -@ http://www.dubstep.fm/listen.pls'
# Moves into the specified codebase and opens that
# directory using your specified editor.
code() {
cd "$HOME/src/$@/" 2> /dev/null
if [ "$?" != "0" ]
then
echo "Codebase $@ not found in $HOME/src"
return 1
fi
$GUI_EDITOR .
}
# For MacPorts
export MANPATH=/opt/local/share/man:$MANPATH
export DISPLAY=:0.0
# MacPorts Installer addition: adding an appropriate PATH
# variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# kill the annoying autocorrect.
unsetopt correct_all
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment