From aa669fd6da018e343ad97dbbe2ac0d88715eeee9 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 10 Jun 2019 15:13:58 +0000 Subject: [PATCH] [zsh] add audacious-hack --- home/.zshrc.local | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/home/.zshrc.local b/home/.zshrc.local index 689ea48..8b48158 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -152,6 +152,14 @@ function urlencode() { python3 -c 'import urllib.parse; print(urllib.parse.quote(open(0, "rb").read()))' } +# Audacious does not support symlinks; hack around that +function audacious-hack() { + ( + IFS=$'\n' + audacious $(/bin/ls -1 $1/**/*(@)|sort -Vd) + ) +} + # Program aliases/env ## Aliases for programs