feat(zsh): add alias

This commit is contained in:
Rob Watson 2024-01-13 13:21:33 +01:00
parent a4c0971cfd
commit b9bbd3a49d
1 changed files with 5 additions and 0 deletions

5
zshrc
View File

@ -128,6 +128,11 @@ 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" $* }
if [ "$(uname -s)" = "Linux" ]; then
alias pbcopy="xclip -selection clipboard -i"
alias pbpaste="xclip -selection clipboard -o"
fi
# On boot, power on bluetooth and start xfce
if [ $(tty) = "/dev/tty1" ]; then
bluetoothctl power on