Skip to content

Instantly share code, notes, and snippets.

@alexbw
Created August 24, 2011 21:32
Show Gist options
  • Save alexbw/1169301 to your computer and use it in GitHub Desktop.
Save alexbw/1169301 to your computer and use it in GitHub Desktop.
ZSH profile
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/Users/Alex/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# 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="andrewsardone"
# Set to this to use case-sensitive completion
# export CASE_SENSITIVE="true"
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
source /usr/local/Cellar/autojump/16/etc/autojump.zsh
# Change Python.framework to EPD64.framework to get back 64-bit python
export PATH=/usr/local/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:$PATH
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:/usr/local/lib/python2.7:$PYTHONPATH
alias ls="ls -hG"
alias em="emacsclient -nw"
# rvm
if [[ $TERM = "eterm-color" ]]; then
export TERM="xterm"
fi
alias ga="git add"
alias gc="git commit"
alias gl="git lg"
alias gb="git branch"
alias gs="git status"
alias gu="git unstage"
# History
bindkey ^p up-line-or-history #history-incremental-search-backward
# Xcode convenience function
function xcode() {
if (( $# == 0 )); then
open *.xcodeproj
return
fi
open -a Xcode.app $1
}
# Preview man function
pman () {
man -t "${1}" | open -f -a /Applications/Preview.app
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment