-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
73 lines (60 loc) · 1.47 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
unsetopt beep
# History config
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
# Vim bindings
bindkey -v
zstyle :compinstall filename '/home/agm/.zshrc'
# Completions
autoload -Uz compinit
compinit
# Alias
alias grep='grep --color=auto'
alias tb='taskbook'
alias k='kubectl'
# Antigen config
if [ "$(uname)" = "Darwin" ]; then
unset ASDF_DIR
source /usr/local/share/antigen/antigen.zsh
elif [ "$(expr substr $(uname -s) 1 5)" = "Linux" ]; then
export ASDF_DIR=/opt/asdf-vm
source /usr/share/zsh/share/antigen.zsh
fi
#
## Load the oh-my-zsh's library.
antigen use oh-my-zsh
#
## Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle git
antigen bundle pip
antigen bundle command-not-found
antigen bundle zsh
antigen bundle asdf
antigen bundle networkmanager
antigen bundle bluetoothctl
antigen bundle istioctl
if [ "$(uname)" = "Darwin" ]; then
antigen bundle gcloud=$(brew --prefix asdf)
elif [ "$(expr substr $(uname -s) 1 5)" = "Linux" ]; then
antigen bundle gcloud
fi
#
#
## Other bundles
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-autosuggestions
#
## Apply
antigen apply
# Python config
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=$(asdf which python)
source $(asdf where python)/bin/virtualenvwrapper.sh
export PYTHONBREAKPOINT=ipdb.set_trace
# Java config
. ~/.asdf/plugins/java/set-java-home.zsh
# Go / K8s config
export KO_DOCKER_REPO=kind.local
# Set up prompt
eval "$(starship init zsh)"