Compare commits

..

No commits in common. "7fc8896b358a279e3dd94b3eb97f656d4b1ab41f" and "2afd27fdea38aa7736c89ca8ecc35a7e7e695650" have entirely different histories.

2 changed files with 13 additions and 15 deletions

3
nvimrc
View File

@ -750,9 +750,6 @@ 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
View File

@ -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 dockdown="sudo systemctl stop docker"
alias dockup="sudo systemctl start docker"
alias dockdown="sudo systemctl stop docker"
alias gb="go build"
alias gba="go build ./..."
alias gbat="go build ./... && go test ./..."
@ -83,45 +83,46 @@ 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 kgp="kubectl get pod -o wide"
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"
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"
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" $* }
# 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"
# On boot, power on bluetooth and start xfce
if [ $(tty) = "/dev/tty1" ]; then