feat(fish): add more completions for timers

nixos
Moritz Böhme 2023-08-26 11:47:39 +02:00
parent 67dd3bd65d
commit ff632a5b52
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 8 additions and 0 deletions

View File

@ -47,6 +47,14 @@ in
complete -c c -kfa '(zoxide query -l | sed "s|$HOME|~|")' complete -c c -kfa '(zoxide query -l | sed "s|$HOME|~|")'
${optionalString config.virtualisation.podman.dockerCompat /* fish */ "complete -c docker -w podman"} ${optionalString config.virtualisation.podman.dockerCompat /* fish */ "complete -c docker -w podman"}
complete -c timers \
-n "__fish_seen_subcommand_from toggle" \
-fa '(timers --json l | ${getExe pkgs.jq} -r .[][].name)'
complete -c timers \
-n "__fish_seen_subcommand_from remove" \
-fa '(timers --json l | ${getExe pkgs.jq} -r .[][].name)'
# Variables # Variables
${exportedVariables} ${exportedVariables}
''; '';