From b9bbd3a49d458e481e9e62e6f1197aead94c307d Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Sat, 13 Jan 2024 13:21:33 +0100 Subject: [PATCH] feat(zsh): add alias --- zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zshrc b/zshrc index 23a7564..923aaa8 100644 --- a/zshrc +++ b/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}}' } 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