feat(zsh): add alias
This commit is contained in:
parent
a4c0971cfd
commit
b9bbd3a49d
5
zshrc
5
zshrc
|
@ -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}}' }
|
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" $* }
|
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
|
# On boot, power on bluetooth and start xfce
|
||||||
if [ $(tty) = "/dev/tty1" ]; then
|
if [ $(tty) = "/dev/tty1" ]; then
|
||||||
bluetoothctl power on
|
bluetoothctl power on
|
||||||
|
|
Loading…
Reference in New Issue