From 7602e70ac45fb757acbc9c6e54af48828f6edbc9 Mon Sep 17 00:00:00 2001 From: self Date: Fri, 23 Sep 2022 22:54:47 +0100 Subject: Split out zshrc into several files for cleanliness --- zsh/.zshrc-fn | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 zsh/.zshrc-fn (limited to 'zsh/.zshrc-fn') diff --git a/zsh/.zshrc-fn b/zsh/.zshrc-fn new file mode 100644 index 0000000..f58df75 --- /dev/null +++ b/zsh/.zshrc-fn @@ -0,0 +1,19 @@ +defix() { + for i in "$1"*;do mv "$i" "${i#"$1"}";done +} + +rd() { # Rename current directory. + curr="$(dirname "$(pwd)")" + cd .. + mv "$curr" "$1" + cd "$curr" || return +} + +# pulseaudio - this is a temporary solution +sv() { + pactl set-sink-volume 0 $1% +} + +pvd() { + mpv *$1* +} -- cgit v1.2.1