commit a871f52cf4f3d4367daf96a20de7cef4b2ebd56f
parent 5acc3ab85502d3e7d96206dbfb2a14fdee2eed99
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Fri, 19 Mar 2021 00:31:00 -0700
Refine mpc(1) shell functions
Remove built-in egrep(1) filtering This is more elegant, if want
to filter using egrep(1), do it how you would with anything else.
- Remove mq since ml would now be identical
- Rename mf[ind] to mL[ist] which now better suits it
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/local/shell/.config/shell/mpc b/local/shell/.config/shell/mpc
@@ -9,12 +9,11 @@ mp() m play "$@"
# queue
ma() m add "$@"
-mca() { m clear -q && ma "$@"; }
-mq() { m -f %file% playlist | egrep "${@:-.}" ;}
+mca() { m -q clear && ma "$@" ;}
# playlist
ml() m playlist "$@"
# database
-mf() { m listall | egrep "${@:-.}" ;}
+mL() m listall "$@"
mu() m update -w "$@"