Skip to content

Instantly share code, notes, and snippets.

@TimDumol
Created July 13, 2014 21:51
Show Gist options
  • Save TimDumol/83af590fc07ee1b380d0 to your computer and use it in GitHub Desktop.
Save TimDumol/83af590fc07ee1b380d0 to your computer and use it in GitHub Desktop.
zshrc
set -k
source ~/.bashrc
# 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="robbyrussell"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.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)
source $ZSH/oh-my-zsh.sh
setopt inc_append_history
unsetopt share_history
PS1="[%{$fg[green]%}%n%{$reset_color%}@%{$fg[cyan]%}%m%{$reset_color%} %{$fg[yellow]%}%~%{$reset_color%}]%# "
PS2='> '
PS3='> '
PS4='+ '
case ${TERM} in
xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
;;
screen)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
;;
esac
# Customize to your needs...
# source /usr/share/zsh/plugins/zsh-syntax-highlight/zsh-syntax-highlighting.zsh
export PATH=/usr/lib/colorgcc/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/share/java/apache-ant/bin:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/bin:${HOME}/.cabal/bin:/opt/bin:/opt/kde/bin:/usr/bin/vendor_perl:${HOME}/.rvm/bin:${HOME}/devel/julia:${HOME}/.gem/ruby/1.9.1/bin:${HOME}/devel/ducttape:/usr/local/share/npm/bin:/usr/local/texlive/2012/bin/x86_64-darwin:/usr/local/share/python:/Developer/NVIDIA/CUDA-5.0/bin:${HOME}/devel/play-2.1.1:${HOME}/sage/sage:${HOME}/devel/storm-0.8.2/bin:${HOME}/devel/arcanist/bin/:${HOME}/bin:${PATH}
#export PYTHONPATH=/usr/local/lib/python2.7/site-packages
alias cp="nocorrect cp -i"
alias mv="nocorrect mv"
alias mkdir="nocorrect mkdir"
alias pacaur="nocorrect pacaur"
alias sudo="nocorrect sudo"
alias dig="nocorrect dig"
alias xclipc="xclip -selection clipboard"
#alias man="nocorrect pinfo -m"
alias zip="nocorrect zip"
alias vagrant="nocorrect vagrant"
alias bexec="bundle exec"
alias clang++="clang++ -g"
function findr() {
find $1 -iname "*$2*"
}
if [ "$(uname)" = Darwin ]; then
export CC=gcc-4.8
export CXX=g++-4.8
export CPP="gcc-4.8 -E"
export CXXCPP="g++-4.8 -E"
export CUDA_ROOT="/Developer/NVIDIA/CUDA-5.0"
# Homebrew tab-completion
fpath=($HOME/.zsh/func $fpath)
typeset -U fpath
export JAVA_HOME=$(/usr/libexec/java_home)
fi
export PYLEARN2_DATA_PATH="$HOME/devel/ml/data"
export LC_ALL="en_US.UTF-8"
export LC_LANG="en_US.UTF-8"
export PGDATA=/usr/local/var/postgres
export VAGRANT_DEFAULT_PROVIDER=vmware_fusion
eval "$(fasd --init auto)"
source /usr/local/bin/virtualenvwrapper.sh
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
rvm use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment