-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
54 lines (44 loc) · 2.3 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
export EDITOR=vim
export GOPATH=${HOME}/go
# to use ctrl + a/e with vscode terminal
bindkey -e
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
ssh-add --apple-use-keychain
source /Users/mugioka/projects/mugioka/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
### Added by Zinit's installer
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
print -P "%F{33} %F{34}Installation successful.%f%b" || \
print -P "%F{160} The clone has failed.%f%b"
fi
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
# Load a few important annexes, without Turbo
# (this is currently required for annexes)
zinit light-mode for \
zdharma-continuum/zinit-annex-as-monitor \
zdharma-continuum/zinit-annex-bin-gem-node \
zdharma-continuum/zinit-annex-patch-dl \
zdharma-continuum/zinit-annex-rust
### End of Zinit's installer chunk
zinit ice pick"async.zsh" src"pure.zsh" # with zsh-async library that's bundled with it.
zinit light sindresorhus/pure
zstyle :prompt:pure:git:branch color "#ffff00"
export PATH="${PATH}:${GOPATH}/bin:${HOME}/Library/Python/3.8/bin"
alias awsp="source _awsp"
export XDG_CONFIG_HOME=$HOME/.config
. /opt/homebrew/opt/asdf/libexec/asdf.sh
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/mugioka/Downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/mugioka/Downloads/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/mugioka/Downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/mugioka/Downloads/google-cloud-sdk/completion.zsh.inc'; fi
source <(kubectl completion zsh)
source <(kustomize completion zsh)
source <(helm completion zsh)
alias rck='kubectl run mugioka-curl --image=curlimages/curl -i --tty --rm -- sh'
alias rdk='kubectl run mugioka-dig --image=tutum/dnsutils -i --tty --rm -- sh'
export USE_GKE_GCLOUD_AUTH_PLUGIN=True
export KUBECTL_EXTERNAL_DIFF="colordiff -N -u"