diff options
Diffstat (limited to 'zsh/.zshrc-fn')
-rw-r--r-- | zsh/.zshrc-fn | 19 |
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* +} |