-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
60 lines (50 loc) · 2.22 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
stty icrnl
alias vim='nvim'
alias vi='vim'
alias ycs3='aws s3 --endpoint-url=https://storage.yandexcloud.net'
alias kgpa='kubectl get pod --all-namespaces'
alias python='python3'
alias t='terraform'
alias g='googler'
alias c='clear'
alias g='git'
alias k='kubectl'
alias mk='minikube'
alias kindnew='kind delete cluster && kind create cluster'
alias drc='docker rm $(docker ps -a -q)'
alias dri='docker rmi $(docker images)'
alias unbb='kubectl delete pod busybox'
alias bb='kubectl run busybox --image=dockerhub.timeweb.cloud/ep4sh/debug --rm -it --restart=Never --command --'
alias bbaws='kubectl run busybox --image=dockerhub.timeweb.cloud/ep4sh/debug:awscli --rm -it --restart=Never --command --'
alias bbq='kubectl run busybox --image=dockerhub.timeweb.cloud/ep4sh/debug-sql --rm -it --restart=Never --command --'
alias bba='kubectl run busybox --image=dockerhub.timeweb.cloud/ep4sh/debug:arm --rm -it --restart=Never --command --'
alias rg='rg --hidden'
export ZSH="$HOME/.oh-my-zsh"
export TERM=linux
export AWS_REGION=us-east-1
tmuxssh () {ssh -t $1 tmux ;}
cleartf () {fd .terragrunt-cache --type d --hidden --no-ignore --exec rm -rf}
rvme () {source /$HOME/.rvm/scripts/rvm}
ZSH_THEME="fwalch"
ZSH_DISABLE_COMPFIX=true
plugins=(vi-mode git docker kubectl)
source $ZSH/oh-my-zsh.sh
[ -f ~/.zprofile ] && source $HOME/.zprofile
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:/usr/local/go/bin
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
export PATH="in:$PATH"
export PATH="$PATH:$HOME/.rvm/bin"
export PATH="$PATH":$HOME/.local/bin
# The next line updates PATH for Yandex Cloud CLI.
if [ -f '/home/pradchenko/yandex-cloud/path.bash.inc' ]; then source '/home/pradchenko/yandex-cloud/path.bash.inc'; fi
# The next line enables shell command completion for yc.
if [ -f '/home/pradchenko/yandex-cloud/completion.zsh.inc' ]; then source '/home/pradchenko/yandex-cloud/completion.zsh.inc'; fi
# >>>> Vagrant command completion (start)
fpath=(/opt/vagrant/embedded/gems/gems/vagrant-2.4.1/contrib/zsh $fpath)
compinit
# <<<< Vagrant command completion (end)
#
alias git_pull_all='find . -not -path "*/.terraform/*" -type d -name .git -exec bash -c "cd \"{}\"/../ && pwd && git pull" \;'