dotfiles/zshrc

75 lines
2.2 KiB
Bash
Raw Normal View History

2015-09-15 17:12:05 +00:00
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
2016-02-19 20:46:43 +00:00
plugins=(git brew sudo github django python pip)
2016-02-20 03:56:16 +00:00
ZSH_THEME="candy"
2015-09-15 17:12:05 +00:00
source $ZSH/oh-my-zsh.sh
2016-02-19 02:55:51 +00:00
2016-02-19 03:12:25 +00:00
export EDITOR=vim
2016-02-20 03:56:16 +00:00
export LC_ALL=en_US.UTF-8
2016-02-19 02:55:51 +00:00
export LANG=en_US.UTF-8
export NPM_PACKAGES="${HOME}/.npm-packages"
export NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
export GOPATH=$HOME/go
export PHP_AUTOCONF="/usr/local/bin/autoconf"
export WORKON_HOME=$HOME/.virtualenvs
2016-02-19 20:46:43 +00:00
export PROJECT_HOME=$HOME/AddGeneProjects
source /usr/local/bin/virtualenvwrapper_lazy.sh
source $HOME/bin/virtualenv-auto-activate.sh
export LESSOPEN="| /usr/local/bin/src-hilite-lesspipe.sh %s"
export LESS=' -R '
2016-02-19 02:55:51 +00:00
export PATH="$HOME/bin:$HOME/.rvm.bin:$NPM_PACKAGES/bin:$GOPATH/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
2016-02-19 20:46:43 +00:00
export PATH=/bin:/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/Users/tsouza/bin:/opt/local/bin:$PATH
export PATH="$HOME/bin:$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
2016-02-19 02:55:51 +00:00
# Sourcing aliases and functions
source ~/.bash_aliases
2016-02-19 20:46:43 +00:00
alias cg='cd "$(git rev-parse --show-toplevel)"'
alias fuck='eval $(thefuck $(fc -ln -1)); history -r'
alias ag='\ag --pager="less"'
2016-02-20 03:56:16 +00:00
if [ -z "$SSH_AUTH_SOCK" ] ; then
eval `ssh-agent -s`
ssh-add
fi
2016-02-19 20:46:43 +00:00
# Uncomment the following line to display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
2016-02-19 02:55:51 +00:00
2016-02-19 20:46:43 +00:00
export ADDGENE_CORE_REPO_DIR=/Users/tyrelsouza/AddGeneProjects/addgene-core
# VMware Fusion
if [ -d "/Applications/VMware Fusion.app/Contents/Library" ]; then
export PATH=$PATH:"/Applications/VMware Fusion.app/Contents/Library"
fi
export GREP_OPTIONS="--color=auto --exclude=*.pyc --exclude-dir=.git"
export MP_FULLNAME="Tyrel Souza"
2016-02-20 03:56:16 +00:00
function adg () {
2016-02-19 20:46:43 +00:00
workon addgene-core
}
2016-02-20 03:56:16 +00:00
function cpbr () {
2016-02-19 20:46:43 +00:00
if branch=$(git symbolic-ref --short -q HEAD)
then
printf "$branch" | pbcopy
osascript -e "display notification \"$branch copied to clipboard\" with title \"cpbr\""
else
echo "no branch, can't copy"
fi
}
function hidden() { ls -a "$@" | grep '^\.'; }
2016-02-20 03:56:16 +00:00
2016-02-19 02:55:51 +00:00
2016-02-19 20:46:43 +00:00
alias hideprev='history -d $((HISTCMD-2)) && history -d $((HISTCMD-1))' # Hide the previous command you just ran and forgot to use space.
#let g:user_emmet_leader_key='<C-Z>'