summaryrefslogtreecommitdiff
path: root/zsh/.zshrc-fn
diff options
context:
space:
mode:
authorself <george@gabbott.dev>2022-09-23 22:54:47 +0100
committerself <george@gabbott.dev>2022-09-23 22:54:47 +0100
commit7602e70ac45fb757acbc9c6e54af48828f6edbc9 (patch)
tree98524e05075c5d90a02efa949a0e9212cad178a5 /zsh/.zshrc-fn
parenta8fce0f82a19527a25734c317d2ef9a490a200a7 (diff)
Split out zshrc into several files for cleanliness
Diffstat (limited to 'zsh/.zshrc-fn')
-rw-r--r--zsh/.zshrc-fn19
1 files changed, 19 insertions, 0 deletions
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*
+}