-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
85 lines (70 loc) · 2.95 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
export ZSH=$HOME/.oh-my-zsh
if [[ `uname` == 'Darwin' ]]; then
export PATH=$HOME/bin:/usr/local/bin:/Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin:$PATH
export EDITOR="vim"
export CXX="/usr/local/opt/llvm/bin/clang++"
fi
export FZF_DEFAULT_COMMAND='ag --nocolor --ignore node_modules -g ""'
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="sorin"
plugins=(git, zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
setopt AUTO_CD
# Atomic Jolt
alias nuke="rails db:drop && rails db:create && rails db:migrate && rails db:seed"
alias setup="~/Dropbox/aj-dev/atomicjolt/local-development/setup"
# /Atomic Jolt
if [[ `uname` == 'Darwin' ]]; then
alias g++="/usr/local/opt/llvm/bin/clang++"
alias vim="/Applications/MacVim.app/Contents/MacOS/Vim"
fi
alias latexinit="git clone https://github.com/kylehovey/latex-boilerplate; mv latex-boilerplate/* ./; rm -rf latex-boilerplate"
alias plaster="git checkout master && git fetch && git merge origin/master"
alias branch="git checkout -b"
alias dot="~/.dotfiles/push.sh"
alias gaster="git push origin master"
alias commit="git commit -m"
alias vimc="vim ~/.vimrc"
alias vimz="vim ~/.zshrc"
alias makec="cp -r ~/.cmake/* ~/.cmake/.* ./"
alias fix="brew services restart chunkwm"
alias groot="while [ ! -d ./.git ]; do cd ..; done"
alias path="pwd | pbcopy"
alias reload=". ~/.zshrc && echo 'ZSH config reloaded from ~/.zshrc'"
alias tmux="tmux -2"
alias dnd="vim ~/Dropbox/Todo/dnd.md"
alias todo="vim ~/Dropbox/Todo/todo.vim"
alias mullid="openssl aes-256-cbc -d -in ~/Dropbox/Todo/mullid | pbcopy"
alias adventure="open https://drive.google.com/drive/u/1/folders/1ctv3djG9DawZTHBEqSB6CSRBi2bFlgwq"
alias bank="open https://docs.google.com/spreadsheets/d/1jKbl2gOvpM562lxchtT8ihJIRDJTK-yOQKwxWh0h3Q4/edit?usp=sharing"
alias fire="open https://maps.nwcg.gov/sa/"
alias roll="open https://www.youtube.com/watch?v=dQw4w9WgXcQ"
alias speed="wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip"
alias whiteboard="convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2""
function fig {
local branches branch
branches=$(git branch -vv) &&
branch=$(echo "$branches" | fzf +m) &&
git checkout $(echo "$branch" | awk '{print $1}' | sed "s/.* //")
}
function complex {
local lines columns colour a b p q i pnew
((columns=COLUMNS-1, lines=LINES-1, colour=0))
for ((b=-1.5; b<=1.5; b+=3.0/lines)) do
for ((a=-2.0; a<=1; a+=3.0/columns)) do
for ((p=0.0, q=0.0, i=0; p*p+q*q < 4 && i < 32; i++)) do
((pnew=p*p-q*q+a, q=2*p*q+b, p=pnew))
done
((colour=(i/4)%8))
echo -n "\\e[4${colour}m "
done
echo
done
}
setopt no_hist_verify
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
## Virtual environments
source /usr/local/bin/virtualenvwrapper.sh