config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit afbd66b19f91bd616c10a489a76c501f4f0390c4
parent 4e9cb51f614a7fbffca15b7f2b64eb4ccf1ed8d8
Author: Jacob R. Edwards <n/a>
Date:   Wed, 28 Dec 2022 13:25:52 -0800

Update the ap tag script

- Explicitly set the tags and base directories
- Use -l instead of -p
- Use tags list instead of ls(1)

Diffstat:
Mlocal/ap/sys/config/ap/bin/tag | 13+++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/local/ap/sys/config/ap/bin/tag b/local/ap/sys/config/ap/bin/tag @@ -1,19 +1,20 @@ #!/bin/sh # Copyright 2022 Jacob R. Edwards -# Tagging interface +# Music tagging interface -tag() command tag -a -t "$tags" "$@" +tag() command tag -b "$base" -t "$tags" "$@" -tags="$HOME"/music/tags +base="$HOME"/music +tags="$base"/tags com="${1:?No command}" shift case "$com" in (cur|current) apc name | tag "$@" ;; (queue) apc list | tag "$@" ;; -(show) tag -p "$@" ;; -(load) tag -p "$@" | revf | ap truncate ^ ;; -(list) ls -1 "$tags" ;; +(show) tag -l "$@" ;; +(load) tag -l "$@" | revf | ap truncate ^ ;; +(list) tags list "$tags" ;; (*) echo "usage: tag cur[rent] [tag ...] tag queue [tag ...]