From 26d6630f5b396964efb6df5cf424d536a59e5329 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 6 May 2026 13:07:26 +0200 Subject: Add install script, shell completions, and systemd service - Add install.sh script that builds release, stops daemon, and installs binary - Add shell completions for bash, zsh, and fish - Add systemd user service unit file - Add public binary declaration in Cargo.toml - Add install command to CLI - Make current_track field public for MPRIS integration (placeholder) --- completions/rsp.zsh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 completions/rsp.zsh (limited to 'completions/rsp.zsh') diff --git a/completions/rsp.zsh b/completions/rsp.zsh new file mode 100644 index 0000000..c07feb1 --- /dev/null +++ b/completions/rsp.zsh @@ -0,0 +1,26 @@ +#compdef rsp + +_rsp() { + _arguments -C \ + '1:command:->cmd' \ + '*::args:->args' + + case $state in + cmd) + _values 'command' \ + 'start' 'stop' 'restart' 'play' 'pause' 'resume' 'next' 'previous' \ + 'volume' 'shuffle' 'queue' 'status' 'scan' 'settings' + ;; + args) + # if first word is "play", complete files/dirs + if [[ $words[1] == play || $words[2] == play ]]; then + _files + else + # default: complete nothing (or you can list other subcommand args) + return 0 + fi + ;; + esac +} + +compdef _rsp rsp -- cgit v1.2.3