about summary refs log tree commit diff
path: root/fish/.local/etc/fish/conf.d/beet.fish
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--fish/.local/etc/fish/conf.d/beet.fish9
1 files changed, 9 insertions, 0 deletions
diff --git a/fish/.local/etc/fish/conf.d/beet.fish b/fish/.local/etc/fish/conf.d/beet.fish
new file mode 100644
index 0000000..0882aba
--- /dev/null
+++ b/fish/.local/etc/fish/conf.d/beet.fish
@@ -0,0 +1,9 @@
+if command -s beet &>/dev/null
+    set -x BEETSDIR $XDG_DATA_HOME/beets
+
+    set beets_config $XDG_CONFIG_HOME/beets/config.yaml
+    if test -e $beets_config
+        alias beet "beet -c $beets_config"
+    end
+    set -e beets_config
+end

Consider giving Nix/NixOS a try! <3