about summary refs log tree commit diff
path: root/profile/.profile.d/beet.sh
blob: 2c2fd9aedc6e78edd9c29ae0d15dbcf0c98a7020 (plain) (blame)
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