dotfiles/zshrc

68 lines
1.5 KiB
Bash
Raw Normal View History

2015-09-15 17:12:05 +00:00
export ZSH=$HOME/.oh-my-zsh
plugins=(git brew sudo github django python pip cp vagrant virtualenv nmap rvm)
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
ZSH_THEME="soliah"
else
ZSH_THEME="candy"
2016-02-23 17:42:50 +00:00
ZSH_THEME="tyrel"
2016-02-23 17:40:21 +00:00
export VIRTUAL_ENV_DISABLE_PROMPT=1
fi
source $ZSH/oh-my-zsh.sh
##### ^^^ Oh my ZSH ^^^^ #####
2016-02-19 02:55:51 +00:00
2016-02-19 03:12:25 +00:00
export EDITOR=vim
export GOPATH=$HOME/go
2016-02-19 02:55:51 +00:00
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LESS=' -R '
export LESSOPEN="| /usr/local/bin/src-hilite-lesspipe.sh %s"
2016-02-19 02:55:51 +00:00
export NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
export NPM_PACKAGES="${HOME}/.npm-packages"
2016-02-19 02:55:51 +00:00
export PHP_AUTOCONF="/usr/local/bin/autoconf"
2016-02-19 20:46:43 +00:00
# Virtualenv + Wrapper
export PROJECT_HOME=$HOME/AddGeneProjects
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
2016-02-19 20:46:43 +00:00
2016-02-19 02:55:51 +00:00
export PATH="$NPM_PACKAGES/bin:$GOPATH/bin:$HOME/bin:$PATH"
2016-02-19 02:55:51 +00:00
2016-02-19 20:46:43 +00:00
#
2016-02-20 03:56:16 +00:00
if [ -z "$SSH_AUTH_SOCK" ] ; then
eval `ssh-agent -s`
ssh-add ~/.ssh/id_rsa
2016-11-21 15:55:16 +00:00
fi
#
if [ -e ~/.ssh/id_addgene ];then
ssh-add ~/.ssh/id_addgene
2016-02-20 03:56:16 +00:00
fi
2016-02-19 20:46:43 +00:00
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-19 02:55:51 +00:00
2016-04-05 19:25:30 +00:00
if [ -e ~/.zshrc.local ];then
source ~/.zshrc.local
fi
2016-07-14 19:19:30 +00:00
# Sourcing aliases
source ~/.bash_aliases
2016-07-14 19:15:29 +00:00
source $HOME/.profile
source $HOME/.credentials