-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
68 lines (52 loc) · 1.45 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
export ZSH="$HOME/.dotfiles/.oh-my-zsh"
export ZSH_CUSTOM="$HOME/.dotfiles/custom"
export SPACESHIP_VENV_SHOW="false"
ZSH_THEME="spaceship"
SPACESHIP_DIR_COLOR="green"
SPACESHIP_CHAR_COLOR_SUCCESS="cyan"
if [[ "$TERM_PROGRAM" == "WarpTerminal" ]]; then
SPACESHIP_PROMPT_ASYNC="false"
SPACESHIP_PROMPT_ADD_NEWLINE="false"
SPACESHIP_PROMPT_SEPARATE_LINE="false"
SPACESHIP_CHAR_SYMBOL=" "
else
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
fi
source $ZSH/oh-my-zsh.sh
# User configuration
export EDITOR='vim'
export CLICOLOR=1
# Go Setup
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export GO111MODULE=on
# Command Aliases
alias k="kubectl"
alias kns="kubectl config set-context"
if ! command -v COMMAND &> /dev/null; then
complete -F __start_kubectl k
fi
# PyEnv Setup
export PYENV_VIRTUALENV_DISABLE_PROMPT=1
compctl -K _pyenv pyenv
_pyenv() {
local words completions
read -cA words
if [ "${#words}" -eq 2 ]; then
completions="$(pyenv commands)"
else
completions="$(pyenv completions ${words[2,-2]})"
fi
reply=(${(ps:\n:)completions})
}
if which pyenv-virtualenv-init > /dev/null 2>&1; then
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)";
fi
# NVM Stuff
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# Consul Autocomplete
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/local/bin/consul consul