aboutsummaryrefslogtreecommitdiffstats
path: root/.zshrc-linux-desktop
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2016-02-01 23:33:47 -0700
committerkatherine <shmibs@shmibbles.me>2016-02-01 23:33:47 -0700
commitd6d77e40098945376c5daa0dc3fbf6760ef28bb0 (patch)
treee68371b3d026cd58787e492fa50101f14ea6f9e9 /.zshrc-linux-desktop
parent48f48240e3d980785b146584dd81a390d3e1af47 (diff)
downloaddotfiles-d6d77e40098945376c5daa0dc3fbf6760ef28bb0.tar.gz
comment
Diffstat (limited to '.zshrc-linux-desktop')
-rw-r--r--.zshrc-linux-desktop5
1 files changed, 4 insertions, 1 deletions
diff --git a/.zshrc-linux-desktop b/.zshrc-linux-desktop
index e744785..dc2724f 100644
--- a/.zshrc-linux-desktop
+++ b/.zshrc-linux-desktop
@@ -15,6 +15,9 @@ mpd-sleep() {
done
}
+# make small cover versions for mpc-notify.sh
+# leaks memory for some reason, so don't run on a clean library
+# or it'll crash everything
mpd-cover-convert() {
find ~/music -type f -regextype posix-extended -regex ".*cover\.(png|jpg)"\
| while read file; do
@@ -33,7 +36,7 @@ mpd-filetypes() {
# hackily yoink recognised types from mpd --version
types=(); mpd --version \
| sed -n '1h; 1!H; ${g; s/.*Decoders plugins:\(.*\)Output.*/\1/g; p}'\
- | tr -s ' ' '\n' | sed -e 's/.*\]//' -e '/^$/d' | sort | uniq\
+ | tr -s ' ' '\n' | sed -e 's/.*\]//' -e '/^$/d' | sort -u\
| while read word; do
types[$(( ${#types} + 1 ))]="$word"
done