diff --git a/vim/after/ftplugin/go.vim b/vim/after/ftplugin/go.vim index aa90176..e273a8d 100644 --- a/vim/after/ftplugin/go.vim +++ b/vim/after/ftplugin/go.vim @@ -62,6 +62,7 @@ iabbrev errr ccif err != nil {return err} iabbrev defr ccdefer func() {}()ki iabbrev fmtpf fmt.Printf("\n")3hi=Eatchar('\s') iabbrev fmtpl fmt.Println("")hi=Eatchar('\s') +iabbrev fmterr fmt.Errorf(": %s", err)10hi=Eatchar('\s') iabbrev logpf log.Printf("\n")3hi=Eatchar('\s') iabbrev logpl log.Println("")hi=Eatchar('\s') iabbrev ctxcc ctx context.Context diff --git a/zshrc b/zshrc index 67ad72a..4b214df 100644 --- a/zshrc +++ b/zshrc @@ -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"