chore(zsh): aliases

This commit is contained in:
Rob Watson 2024-11-10 14:47:20 +01:00
parent 7a8f5f9073
commit ee24a7ce17
1 changed files with 4 additions and 2 deletions

6
zshrc
View File

@ -72,6 +72,7 @@ alias cdg=cdgit
alias cdgit='cd $(git rev-parse --show-toplevel)' alias cdgit='cd $(git rev-parse --show-toplevel)'
alias clp="tmux kill-pane" alias clp="tmux kill-pane"
alias clw="tmux kill-window" alias clw="tmux kill-window"
alias ct="cargo test"
alias d="docker" alias d="docker"
alias dc="docker-compose -f docker-compose.yml" alias dc="docker-compose -f docker-compose.yml"
alias dcd="docker-compose -f docker-compose.yml -f docker-compose.development.yml" alias dcd="docker-compose -f docker-compose.yml -f docker-compose.development.yml"
@ -102,6 +103,7 @@ alias kgp="kubectl get pod -o wide"
alias kgrpcurl="kubectl run grpcurl --image networld/grpcurl --image-pull-policy=Always -it --rm -- sh" alias kgrpcurl="kubectl run grpcurl --image networld/grpcurl --image-pull-policy=Always -it --rm -- sh"
alias kgs="kubectl get svc -o wide" alias kgs="kubectl get svc -o wide"
alias kmplayer="kubectl run mplayer --image olmesm/mplayer-docker:latest --image-pull-policy=Always -it --rm -- sh" alias kmplayer="kubectl run mplayer --image olmesm/mplayer-docker:latest --image-pull-policy=Always -it --rm -- sh"
alias kt="kubetail"
alias kw="kubectl get events -w" alias kw="kubectl get events -w"
alias ll="eza -l --group-directories-first --git" alias ll="eza -l --group-directories-first --git"
alias ls="eza --color=auto" alias ls="eza --color=auto"
@ -129,8 +131,8 @@ alias tp="telepresence"
alias tpl="telepresence list" alias tpl="telepresence list"
alias vim="nvim" alias vim="nvim"
alias wg="sudo wg" alias wg="sudo wg"
alias wgdown="sudo wgdown" alias wgdown="sudo $HOME/script/wgdown"
alias wgup="sudo wgup" alias wgup="sudo $HOME/script/wgup"
alias zzz="sudo systemctl hibernate" alias zzz="sudo systemctl hibernate"
ksecd() { kubectl get secret "$1" -o go-template='{{range $k,$v := .data}}{{printf "%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{"\n"}}{{end}}' } ksecd() { kubectl get secret "$1" -o go-template='{{range $k,$v := .data}}{{printf "%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{"\n"}}{{end}}' }
rgw() { SEARCH_TERM=$1; shift; rg -g '!vendor/' "\b$SEARCH_TERM\b" $* } rgw() { SEARCH_TERM=$1; shift; rg -g '!vendor/' "\b$SEARCH_TERM\b" $* }