-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.zshrc
65 lines (49 loc) · 1.8 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
ZSH=$HOME/.oh-my-zsh
ZSH_CUSTOM=$HOME/.oh-my-zsh-custom
ZSH_THEME="justinaiken"
alias nano="vim"
alias pico="vim"
alias mvim="nocorrect mvim"
DISABLE_AUTO_UPDATE="true"
COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
if [[ "$(uname)" == "Darwin" ]]; then
plugins=(ahn asdf aws bundle colored-man-pages capistrano docker docker-compose gem git github heroku iterm2 jump mix npm osx pod pow powify spring_gem vagrant zeus zsh_reload zsh-syntax-highlighting)
else
plugins=(ahn aws bundle capistrano docker docker-compose gem git heroku jump mix npm spring_gem vagrant zeus zsh_reload zsh-syntax-highlighting)
fi
export PATH="/usr/local/sbin:$PATH"
source $ZSH/oh-my-zsh.sh
unsetopt correct_all
setopt inc_append_history
unsetopt share_history
export MIGHTY_VM=true
if hash atom 2>/dev/null; then
export EDITOR=atom
function atom_gem () {
atom $(bundle show $1)
}
else
export EDITOR=vim
fi
precmd() {
eval 'if [ "$(id -u)" -ne 0 ]; then echo "$(date "+%Y-%m-%d.%H:%M:%S") $(pwd) $(history | tail -n 1)" >>! ~/.shell_history/bash-history-$(date "+%Y-%m-%d").log; fi'
}
__git_files () {
_wanted files expl 'local files' _files
}
zstyle ':completion:*:git-checkout:*' tag-order - '! commit-tags'
ulimit -S -n 2048
ZSH_HIGHLIGHT_STYLES[alias]='fg=077'
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=122'
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=123'
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'bold,bg=red')
if [[ "$(uname)" == "Darwin" ]]; then
HOMEBREW_NO_ANALYTICS=1
source /Users/jaiken/.iterm2_shell_integration.zsh
fi
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export ASDF_DIR=$(brew --prefix asdf)
/usr/local/opt/asdf/asdf.sh