Update iabbrevs

This commit is contained in:
Rob Watson 2022-12-13 22:19:03 +01:00
parent e600665c21
commit 2afd27fdea
2 changed files with 4 additions and 1 deletions

View File

@ -62,6 +62,7 @@ iabbrev errr <esc>ccif err != nil {<cr>return err<cr>}
iabbrev defr <esc>ccdefer func() {<cr><cr>}()<esc>ki
iabbrev fmtpf fmt.Printf("\n")<esc>3hi<c-r>=Eatchar('\s')<cr>
iabbrev fmtpl fmt.Println("")<esc>hi<c-r>=Eatchar('\s')<cr>
iabbrev fmterr fmt.Errorf(": %s", err)<esc>10hi<c-r>=Eatchar('\s')<cr>
iabbrev logpf log.Printf("\n")<esc>3hi<c-r>=Eatchar('\s')<cr>
iabbrev logpl log.Println("")<esc>hi<c-r>=Eatchar('\s')<cr>
iabbrev ctxcc ctx context.Context

4
zshrc
View File

@ -65,7 +65,7 @@ alias cdg=cdgit
alias cdgit='cd $(git rev-parse --show-toplevel)'
alias clp="tmux kill-pane"
alias clw="tmux kill-window"
alias d="dirs -v"
alias d="docker"
alias dc="docker-compose -f docker-compose.yml"
alias dcd="docker-compose -f docker-compose.yml -f docker-compose.development.yml"
alias dockup="sudo systemctl start docker"
@ -89,9 +89,11 @@ alias kcurl="kubectl run curl --image curlimages/curl --image-pull-policy=Always
alias kd="kubectl describe"
alias kdel="kubectl delete"
alias kg="kubectl get"
alias kgrpcurl="kubectl run grpcurl --image networld/grpcurl --image-pull-policy=Always -it --rm -- sh"
alias kgp="kubectl get pod -o wide"
alias kgs="kubectl get svc -o wide"
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}}' }
alias kmplayer="kubectl run mplayer --image olmesm/mplayer-docker:latest --image-pull-policy=Always -it --rm -- sh"
alias kw="kubectl get events -w"
alias k9="kill -9"
alias ll="exa -l --group-directories-first --git"