-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
156 lines (136 loc) · 3.82 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
source /opt/homebrew/share/antigen/antigen.zsh
export ANDROID_SDK_HOME="$HOME/Library/Android/sdk"
export JAVA_HOME=/Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home
export CLOUDSDK_PYTHON=python3
export GOPATH="$HOME/.go"
export EDITOR=vim
export PATH="$HOME/.local/bin:/usr/local/bin:/usr/local/sbin:$GOPATH/bin:$PATH"
export PAGER=less
export LANG=
export LC_COLLATE=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export LC_MESSAGES=en_US.UTF-8
export LC_MONETARY=en_US.UTF-8
export LC_NUMERIC=en_US.UTF-8
export LC_TIME=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export FZF_DEFAULT_COMMAND='rg --files --hidden --glob "!.git"'
export ZSH_TMUX_AUTOSTART=true
export ZSH_TMUX_ITERM2=true
export WORDCHARS='*?_-[]~=&!#$%^(){}<>'
eval "$(direnv hook zsh)"
umask 022
stty -ixon -ixoff
setopt autocd
setopt autopushd
setopt autolist
setopt autoparamslash
setopt chaselinks
setopt listpacked
setopt listtypes
setopt nobeep
setopt print_eight_bit
setopt no_flow_control
setopt extended_glob
autoload -Uz compinit; compinit
autoload -Uz chpwd_recent_dirs cdr add-zsh-hook
add-zsh-hook chpwd chpwd_recent_dirs
antigen use oh-my-zsh
antigen theme refined
antigen bundle aws
antigen bundle command-not-found
antigen bundle common-aliases
antigen bundle docker
antigen bundle git
antigen bundle osx
antigen bundle z
antigen bundle mollifier/anyframe
antigen bundle zsh-users/zsh-completions
antigen apply
alias -g ...='../..'
alias -g ....='../../..'
alias -g .....='../../../..'
alias b='brew'
alias c='code'
alias cu='cd ../'
alias cl='clear'
alias e='echo'
alias f='find'
alias h='hg'
alias l='ls -al'
alias m='mv'
alias o='open'
alias p='ps aux'
alias rm='trash -F'
alias s='ssh'
alias v='vim'
alias vi='vim'
alias w='wget'
alias g='git'
alias gi='gh issue'
alias gil='gh issue list'
alias giv='gh issue view'
alias gic='gh issue create'
alias gs='git status -sb'
alias gb='gh browse'
alias gca='git commit --amend --no-edit'
alias gdc='git diff --cached'
alias grs='git reset HEAD'
alias grv='git checkout --'
alias gpf='git push --force-with-lease'
alias gpr='gh pr'
alias gprl='gh pr list'
alias gprc='gh pr create'
alias gprv='gh pr view'
alias gsw='git update-index --skip-worktree'
alias gtw='git update-index --no-skip-worktree'
alias gclb='git-clean-local-branch'
alias d='docker'
alias dm='docker-machine'
alias dc='docker-compose'
alias dcu='docker-compose up'
alias dcuf='docker-compose up --force-recreate'
alias dcr='docker-compose run --rm'
alias dcd='docker-compose down'
alias dcl='docker-compose logs -f -t --tail=200'
alias be='bundle exec'
alias bi='bundle install'
alias bu='bundle update'
alias r='bundle exec rails'
alias rk='bundle exec rake'
alias rp='bundle exec rspec'
alias ee='direnv edit'
alias er='direnv reload'
alias ea='direnv allow'
alias ed='direnv deny'
alias ns='npm start'
alias nt='npm test'
alias nr='npm run'
alias ni='npm install'
alias ny='yarn'
alias k='kubectl'
alias kg='kubectl get'
alias kx='kubectl exec'
alias kd='kubectl describe'
alias kl='kubectl logs'
alias kc='kubectx'
alias kn='kubens'
alias -g kP='$(kubectl get pods | fzf | awk "{print \$1}")'
bindkey '^[^[OC' forward-word
bindkey '^[^[OD' backward-word
bindkey '^[^[3~' backward-kill-word
bindkey '^T' anyframe-widget-cdr
bindkey '^R' anyframe-widget-put-history
bindkey '^G' anyframe-widget-cd-ghq-repository
bindkey '^B' anyframe-widget-checkout-git-branch
bindkey '^F' anyframe-widget-insert-git-filename
function chpwd() { ls }
function git-clean-local-branch() {
target='master'
if [ "$1" != "" ]; then
target="$1"
fi
git branch --merged "$target" | grep -v "$target" | xargs git branch -d
}
if [ -f '/Users/kechol/.gcloud/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/kechol/.gcloud/google-cloud-sdk/path.zsh.inc'; fi
if [ -f '/Users/kechol/.gcloud/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/kechol/.gcloud/google-cloud-sdk/completion.zsh.inc'; fi