-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
61 lines (50 loc) · 1.37 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
# don't share history between instances
SAVEHIST=1000
HISTFILE=~/.zsh_history
unsetopt share_history
unsetopt inc_append_history
# jump between word boundaries on OS X
bindkey '[B' forward-word
bindkey '[F' backward-word
# so i can have nice things
export EDITOR=vim
export AUTOENV_FILE_ENTER=.env
export PATH=~/Developer/bin:$PATH
# go
export GOPATH=~/Developer/go
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:/usr/local/opt/go/libexec/bin
# git
alias g="git"
alias gs="git status"
alias gd="git diff"
alias gc="git commit"
alias gch="git checkout"
alias gcb="git rev-parse --abbrev-ref HEAD"
alias gpsu="git push --set-upstream origin \`gcb\`"
# laziness
type ccat > /dev/null && alias cat="ccat"
alias a="ag -i"
alias k="k -h"
alias ka="k -A"
# numeric file permissions (useful on OS X)
alias numstat='stat -f "%Lp %N"'
# zplug <3
export ZPLUG_HOME=/usr/local/opt/zplug
source $ZPLUG_HOME/init.zsh
zplug "zsh-users/zsh-syntax-highlighting"
zplug "tarrasch/zsh-autoenv"
zplug "supercrabtree/k"
zplug "peterhurford/up.zsh"
# use prezto's super-fuzzy cd completion
zplug "sorin-ionescu/prezto", \
use:"modules/completion/init.zsh"
# load functions and variables needed for OMZ themes
zplug "robbyrussell/oh-my-zsh", \
use:"lib/{spectrum,git,theme-and-appearance}.zsh", \
nice:1
zplug "themes/zorim", from:oh-my-zsh, nice:2
if ! zplug check --verbose; then
zplug install
fi
zplug load