2015-09-15 17:12:05 +00:00
|
|
|
export ZSH=$HOME/.oh-my-zsh
|
2016-11-22 16:44:48 +00:00
|
|
|
plugins=(git sudo github django python pip cp vagrant virtualenv nmap rvm)
|
2016-02-23 14:46:12 +00:00
|
|
|
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
|
|
|
|
ZSH_THEME="soliah"
|
|
|
|
else
|
2016-11-21 15:40:44 +00:00
|
|
|
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
|
2016-02-23 14:46:12 +00:00
|
|
|
fi
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
2016-11-21 15:40:44 +00:00
|
|
|
##### ^^^ Oh my ZSH ^^^^ #####
|
2016-02-19 02:55:51 +00:00
|
|
|
|
2016-02-19 03:12:25 +00:00
|
|
|
export EDITOR=vim
|
2016-11-21 15:40:44 +00:00
|
|
|
export GOPATH=$HOME/go
|
2016-02-19 02:55:51 +00:00
|
|
|
export LANG=en_US.UTF-8
|
2016-11-21 15:40:44 +00:00
|
|
|
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"
|
2016-11-21 15:40:44 +00:00
|
|
|
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
|
|
|
|
2016-11-21 15:40:44 +00:00
|
|
|
# Virtualenv + Wrapper
|
|
|
|
export PROJECT_HOME=$HOME/AddGeneProjects
|
|
|
|
export WORKON_HOME=$HOME/.virtualenvs
|
2016-11-22 16:44:48 +00:00
|
|
|
if [ -e $HOME/.local/bin/virtualenvwrapper.sh ];then
|
|
|
|
source $HOME/.local/bin/virtualenvwrapper.sh
|
|
|
|
fi
|
2017-02-10 20:18:56 +00:00
|
|
|
if [ -e /usr/local/bin/virtualenvwrapper.sh ]; then
|
|
|
|
source /usr/local/bin/virtualenvwrapper.sh
|
|
|
|
fi
|
2016-02-19 20:46:43 +00:00
|
|
|
|
2016-02-19 02:55:51 +00:00
|
|
|
|
2016-11-21 15:40:44 +00:00
|
|
|
export PATH="$NPM_PACKAGES/bin:$GOPATH/bin:$HOME/bin:$PATH"
|
2017-02-15 17:25:47 +00:00
|
|
|
if [[ $OSTYPE == "*darwin*" ]];then
|
|
|
|
export PATH="/usr/local/opt/gnupg/libexec/gpgbin:$PATH"
|
|
|
|
fi
|
2016-02-19 02:55:51 +00:00
|
|
|
|
|
|
|
|
2016-02-19 20:46:43 +00:00
|
|
|
|
2016-11-21 15:40:44 +00:00
|
|
|
#
|
2016-02-20 03:56:16 +00:00
|
|
|
if [ -z "$SSH_AUTH_SOCK" ] ; then
|
|
|
|
eval `ssh-agent -s`
|
2016-02-23 14:46:12 +00:00
|
|
|
ssh-add ~/.ssh/id_rsa
|
2016-11-21 15:55:16 +00:00
|
|
|
fi
|
|
|
|
#
|
|
|
|
if [ -e ~/.ssh/id_addgene ];then
|
2016-02-23 14:46:12 +00:00
|
|
|
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-11-22 16:45:31 +00:00
|
|
|
function ipa(){
|
|
|
|
ifconfig | grep inet
|
|
|
|
}
|
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
|
|
|
|
2016-11-21 15:40:44 +00:00
|
|
|
# Sourcing aliases
|
|
|
|
source ~/.bash_aliases
|
2016-07-14 19:15:29 +00:00
|
|
|
source $HOME/.profile
|
2016-11-22 16:44:48 +00:00
|
|
|
if [ -e $HOME/.credentials ];then
|
|
|
|
source $HOME/.credentials
|
|
|
|
fi
|
2017-02-02 19:13:37 +00:00
|
|
|
export PYTHONSTARTUP=$HOME/.pythonstartup.py
|
2017-02-06 16:23:43 +00:00
|
|
|
|
|
|
|
function adtest () {
|
|
|
|
no_slashes="$(echo "$1" | sed -e 's/\//\./g')";
|
|
|
|
a_test="$(echo "$no_slashes" | sed -e 's/.py//g')";
|
|
|
|
a_project=$(echo -n "$a_test" | python -c "import sys; print sys.stdin.read().split('.', 1)[0]");
|
|
|
|
run_test=$(echo "bin/manage_$a_project.py test $a_test");
|
|
|
|
echo "Evaling $run_test";
|
|
|
|
eval $run_test;
|
|
|
|
}
|
|
|
|
|
2017-02-15 17:23:57 +00:00
|
|
|
function dots(){
|
|
|
|
cd $(dirname `readlink ~/.zshrc`)
|
|
|
|
}
|