-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
73 lines (56 loc) · 1.77 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
# zsh configuration
export ZSH="/Users/hwanjinjeong/.config/.oh-my-zsh"
plugins=(
git
ripgrep
fzf
autojump
direnv
)
ZSH_THEME=robbyrussell
source $ZSH/oh-my-zsh.sh
# global
export LANG='ko_KR.UTF-8'
export LC_ALL='ko_KR.UTF-8'
# git
export GIT_AUTHOR_NAME="Hwanjin Jeong"
export GIT_COMMITTER_NAME="Hwanjin Jeong"
export GIT_AUTHOR_EMAIL="[email protected]"
export GIT_COMMITTER_EMAIL="[email protected]"
export GHQ_ROOT=~/workspace/src
export WORKSPACE=~/workspace
# editor
export EDITOR="emacsclient -c"
export GOPATH=$WORKSPACE/go
export GOROOT=$WORKSPACE/go
# emacs
alias ed="emacs --daemon"
alias er="pkill emacs && emacs --daemon"
alias e="emacsclient -c"
# k8s
alias k="kubectl "
alias kn="kubens "
alias kctx="kubectx "
export DOCKER_REGISTRY_USERNAME=eng_cloud_platform
export DOCKER_REGISTRY_PASSWORD='xmdhkdltm123!@#'
# tmux
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
exec tmux
fi
# fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
autoload -Uz compinit
compinit
fi
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/$WORKSPACE/bin:~/.emacs.d/bin
export PATH=$PATH:/Users/hwanjinjeong/workspace/src/git.baemin.in/devaom/saml2aws-helper
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
source <(kubectl completion zsh)
source <(skaffold completion zsh)
complete -F __start_kubectl k
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"