2016-09-07 00:07:29 +00:00
|
|
|
export ZSH=$HOME/.oh-my-zsh
|
2016-07-17 16:18:06 +00:00
|
|
|
|
2016-07-18 23:38:17 +00:00
|
|
|
ZSH_THEME="shadowfacts"
|
2016-07-17 16:18:06 +00:00
|
|
|
|
|
|
|
plugins=(osx git)
|
|
|
|
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
|
2016-07-17 16:25:02 +00:00
|
|
|
# command line tools
|
|
|
|
|
2016-07-17 16:18:06 +00:00
|
|
|
alias fuck='$(thefuck $(fc -ln -1))'
|
|
|
|
|
|
|
|
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
|
|
|
|
|
|
|
|
alias git=hub
|
|
|
|
|
|
|
|
alias python=python3
|
|
|
|
alias pip=pip3
|
|
|
|
|
|
|
|
alias oldruby="/usr/local/bin/ruby"
|
|
|
|
alias ruby="/usr/local/Cellar/ruby/2.3.0/bin/ruby"
|
|
|
|
|
2016-07-18 23:15:32 +00:00
|
|
|
# lazily load nvm
|
2016-07-17 16:18:06 +00:00
|
|
|
export NVM_DIR=~/.nvm
|
2016-07-18 23:15:32 +00:00
|
|
|
#. $(brew --prefix nvm)/nvm.sh
|
|
|
|
|
|
|
|
nvm() {
|
|
|
|
unset -f nvm
|
|
|
|
. $(brew --prefix nvm)/nvm.sh
|
|
|
|
nvm "$@"
|
|
|
|
}
|
|
|
|
|
|
|
|
node() {
|
|
|
|
unset -f node
|
|
|
|
. $(brew --prefix nvm)/nvm.sh
|
|
|
|
node "$@"
|
|
|
|
}
|
|
|
|
|
|
|
|
npm() {
|
|
|
|
unset -f npm
|
|
|
|
. $(brew --prefix nvm)/nvm.sh
|
|
|
|
npm "$@"
|
|
|
|
}
|
2016-07-17 16:25:02 +00:00
|
|
|
|
2016-09-10 19:47:50 +00:00
|
|
|
# Go up N directories
|
|
|
|
up() {
|
|
|
|
str=""
|
|
|
|
count=0
|
|
|
|
while [ "$count" -lt "$1" ];
|
|
|
|
do
|
|
|
|
str=$str"../"
|
|
|
|
let count=count+1
|
|
|
|
done
|
|
|
|
cd $str
|
|
|
|
}
|
|
|
|
|
2016-07-17 16:25:02 +00:00
|
|
|
# default file openings
|
|
|
|
alias -s ipr=open
|