Compare commits
3 Commits
2afd27fdea
...
7fc8896b35
Author | SHA1 | Date |
---|---|---|
Rob Watson | 7fc8896b35 | |
Rob Watson | f9cda80c83 | |
Rob Watson | b006d31263 |
3
nvimrc
3
nvimrc
|
@ -750,6 +750,9 @@ nvim_lsp.gopls.setup{
|
|||
settings = {
|
||||
gopls = {
|
||||
staticcheck = true,
|
||||
-- Disalbing linksInHover may not be working as expected:
|
||||
linksInHover = false,
|
||||
usePlaceholders = true,
|
||||
analyses = {
|
||||
unusedparams = true,
|
||||
shadow = true,
|
||||
|
|
25
zshrc
25
zshrc
|
@ -68,8 +68,8 @@ alias clw="tmux kill-window"
|
|||
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"
|
||||
alias dockdown="sudo systemctl stop docker"
|
||||
alias dockup="sudo systemctl start docker"
|
||||
alias gb="go build"
|
||||
alias gba="go build ./..."
|
||||
alias gbat="go build ./... && go test ./..."
|
||||
|
@ -83,46 +83,45 @@ alias gt="go test"
|
|||
alias gta="go test ./..."
|
||||
alias h="helm"
|
||||
alias ji="jira -b"
|
||||
alias k9="kill -9"
|
||||
alias k="kubectl"
|
||||
alias kcc="kubectl config current-context"
|
||||
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 kgrpcurl="kubectl run grpcurl --image networld/grpcurl --image-pull-policy=Always -it --rm -- sh"
|
||||
alias kgp="kubectl get pod -o wide"
|
||||
alias kgrpcurl="kubectl run grpcurl --image networld/grpcurl --image-pull-policy=Always -it --rm -- sh"
|
||||
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"
|
||||
alias ls="exa --color=auto"
|
||||
alias mc="make check"
|
||||
alias ng="noglob"
|
||||
alias pg="pgrep -fa"
|
||||
alias pk="pkill -fc"
|
||||
alias rez="source $HOME/.zshenv && source $ZDOTDIR/.zshrc"
|
||||
alias rgo="rg -g '*.go' -g '!vendor/'"
|
||||
alias rgs="rg -g '*.go' -g '*.rb' -g '!vendor/' -g '!*_test.go' -g '!*_spec.rb'"
|
||||
alias rgt="rg -g '*_test.go' -g '*_spec.rb' -g '!vendor/'"
|
||||
alias sc="systemctl"
|
||||
alias sk="setkeys"
|
||||
alias ssc="sudo systemctl"
|
||||
alias sysc="systemctl"
|
||||
alias rgo="rg -g '*.go' -g '!vendor/'"
|
||||
alias rgs="rg -g '*.go' -g '*.rb' -g '!vendor/' -g '!*_test.go' -g '!*_spec.rb'"
|
||||
alias rgt="rg -g '*_test.go' -g '*_spec.rb' -g '!vendor/'"
|
||||
rgw() { SEARCH_TERM=$1; shift; rg -g '!vendor/' "\b$SEARCH_TERM\b" $* }
|
||||
alias to="tea open"
|
||||
alias tm="tmux attach"
|
||||
alias tmd="tmux new -s default -c $HOME || tmux attach -t default"
|
||||
alias tms="tmuxsess"
|
||||
alias to="tea open"
|
||||
alias tp="telepresence"
|
||||
alias tpl="telepresence list"
|
||||
alias vim="nvim"
|
||||
alias wg="sudo wg"
|
||||
alias wgdown="sudo wgdown"
|
||||
alias wgup="sudo wgup"
|
||||
alias zzz="sudo systemctl hibernate"
|
||||
# recursive grep with line numbers and colour, ignoring binary files:
|
||||
alias gnr="grep -nR -I --color"
|
||||
# same but case-insensitive:
|
||||
alias gnri="grep -nRi -I --color"
|
||||
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" $* }
|
||||
|
||||
# On boot, power on bluetooth and start xfce
|
||||
if [ $(tty) = "/dev/tty1" ]; then
|
||||
|
|
Loading…
Reference in New Issue