dotfiles/zshrc

78 lines
2.3 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)
ZSH_THEME="wezm"
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-19 02:55:51 +00:00
export LC_ALL=C
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"'
ssh-add /Users/tyrelsouza/.ssh/id_addgene
# 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"
function adg() {
workon addgene-core
}
function cpbr {
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 '^\.'; }
function uploadphotos(){ scp -rp "$1" vps:photos/$2; }
function upload_ss(){
MD5=$(md5 -q $1)
E= $1|awk -F . '{print $NF}'
F= $MD5$EXT
echo $MD5 $E $F
#uploadphotos $1 $fname
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>'