-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
124 lines (108 loc) · 2.54 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# oh-my-zsh settings
if [[ -o login ]]; then
path=(
~/.bin
~/.composer/vendor/bin
~/go/bin
/Library/TeX/texbin
/usr/local/opt/python/libexec/bin
/usr/local/bin
/usr/local/sbin
/usr/bin
/usr/sbin
/bin
/sbin
)
fi
# locale
export LANG="en_US.UTF-8"
# use vim as the visual editor
export VISUAL="vim"
export EDITOR="vim"
# golang
export GOPATH="$HOME/go"
# pip should only run if there is a virtualenv currently activated
export PIP_REQUIRE_VIRTUALENV=true
export PIPENV_DONT_LOAD_ENV=true
export PIPENV_SHELL_FANCY=true
export PIPENV_VENV_IN_PROJECT=true
# oh my zsh
export ZSH="$HOME/.zsh"
COMPLETION_WAITING_DOTS=true
DISABLE_UPDATE_PROMPT=true
ZSH_THEME="bureau"
plugins=(
# aws
# catimg
chucknorris
colored-man-pages
# docker
# docker-compose
# docker-machine
# ember-cli
# gem
github
gitignore
# gnu-utils
# golang
heroku
history-substring-search
iterm2
marked2
# nmap
# node
# npm
nvm
osx
# pyenv
# python
# redis-cli
safe-paste
# tmux
tmuxinator
# wp-cli
# vi-mode
vundle
z
)
source $ZSH/oh-my-zsh.sh
nvm_prompt_info() {
if [ -n "$NVM_BIN" ]; then
echo "${ZSH_THEME_NVM_PROMPT_PREFIX}$(basename $(dirname $NVM_BIN))${ZSH_THEME_NVM_PROMPT_SUFFIX} "
fi
}
pipenv_prompt_info() {
if [ -n "$VIRTUAL_ENV" ]; then
if [ -n "$PIPENV_VENV_IN_PROJECT" ]; then
echo "($(basename $(dirname $VIRTUAL_ENV))) "
else
echo "($(basename $VIRTUAL_ENV)) "
fi
fi
}
RPROMPT='$(nvm_prompt_info)$(pipenv_prompt_info)$(bureau_git_prompt)'
# load custom executable functions
for function_file in $ZSH/functions/*; do
source $function_file
done
unset function_file
# Base16 shell theme
BASE16_SHELL=$HOME/.config/base16-shell/
[ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)"
# ls colors - joseph.is/1vozPB8
export LS_COLORS="di=1;36:ln=35:so=32:ex=31:bd=34:cd=34"
# grc beautifies all the things
source /usr/local/etc/grc.bashrc
# keybindings
bindkey \^U backward-kill-line
bindkey '\e[A' history-beginning-search-backward
bindkey '\e[B' history-beginning-search-forward
# pipenv completion
eval "$(pipenv --completion)"
# use minikube's daemon by default
#eval $(minikube docker-env)
# aliases
[ -s ~/.aliases ] && source ~/.aliases
# local config
[ -s ~/.zshrc.local ] && source ~/.zshrc.local
# [ -z "$TMUX" ] && [ -z "$PIPENV_ACTIVE" ] && chuck_cow