diff options
author | katherine <shmibs@shmibbles.me> | 2016-02-01 23:33:47 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2016-02-01 23:33:47 -0700 |
commit | d6d77e40098945376c5daa0dc3fbf6760ef28bb0 (patch) | |
tree | e68371b3d026cd58787e492fa50101f14ea6f9e9 | |
parent | 48f48240e3d980785b146584dd81a390d3e1af47 (diff) | |
download | dotfiles-d6d77e40098945376c5daa0dc3fbf6760ef28bb0.tar.gz |
comment
-rw-r--r-- | .zshrc-linux-desktop | 5 |
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 |