Update aliases and Go snippets
This commit is contained in:
parent
31d31b8648
commit
262c70e0f0
|
@ -72,3 +72,5 @@ iabbrev ior io.Reader
|
|||
iabbrev iow io.Writer
|
||||
iabbrev gof go func() {<cr><cr>}()<esc>kcc<c-r>=Eatchar('\s')<cr>
|
||||
iabbrev fortc for _, tc := range testCases {<cr>t.Run(tc.name, func(t *testing.T) {<cr><cr>})<cr>}<esc>kkcc<c-r>=Eatchar('\s')<cr>
|
||||
iabbrev mapss map[string]string
|
||||
iabbrev mapsi map[string]int
|
||||
|
|
12
zshrc
12
zshrc
|
@ -55,7 +55,10 @@ alias be="bundle exec"
|
|||
alias berc="bundle exec rails console"
|
||||
alias bers="bundle exec rails server"
|
||||
alias berspec="bundle exec rspec --format=progress --no-profile"
|
||||
alias bj="bat -l json"
|
||||
alias by="bat -l yaml"
|
||||
alias c="clear"
|
||||
alias cat="bat"
|
||||
alias cdg=cdgit
|
||||
alias cdgit='cd $(git rev-parse --show-toplevel)'
|
||||
alias clp="tmux kill-pane"
|
||||
|
@ -80,7 +83,14 @@ alias h="helm"
|
|||
alias ji="jira -b"
|
||||
alias k="kubectl"
|
||||
alias kcc="kubectl config current-context"
|
||||
alias kp="kubectl get pods -o wide"
|
||||
alias kcurl="kubectl run curl --image curlimages/curl --image-pull-policy=Always -it --rm -- sh"
|
||||
alias kd="kubectl describe"
|
||||
alias kdel="kubectl delete"
|
||||
alias kg="kubectl get"
|
||||
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 kw="kubectl get events -w --sort-by='.metadata.creationTimestamp'"
|
||||
alias k9="kill -9"
|
||||
alias ll="exa -l --group-directories-first --git"
|
||||
alias ls="exa --color=auto"
|
||||
|
|
Loading…
Reference in New Issue