1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh if command -v beet >/dev/null 2>&1; then export BEETSDIR="${XDG_DATA_HOME}/beets" _beets_config="${XDG_CONFIG_HOME}/beets/config.yaml" if [ -f "${_beets_config}" ]; then # shellcheck disable=SC2139 alias beet="beet -c ${_beets_config}" fi fi unset _beets_config
Consider giving Nix/NixOS a try! <3