commit 5e561fecf9d72c1502eef25c43b9c936ff55f8d6 parent 35fc5fbab9c133e3cf66b11cd631ae8d49a638fc Author: Sean Enck <sean@ttypty.com> Date: Fri, 22 Mar 2024 20:06:22 -0400 fixing totp sub completions for fish Diffstat:
| M | internal/app/doc/fish.sh | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/internal/app/doc/fish.sh b/internal/app/doc/fish.sh @@ -16,7 +16,7 @@ function {{ $profile.Name }} set -l totps {{ $.TOTPListCommand }}{{ range $key, $value := .TOTPSubCommands }} {{ $value }}{{ end }} complete -c {{ $.Executable }} -n "__fish_seen_subcommand_from {{ $.TOTPCommand }}; and not __fish_seen_subcommand_from $totps" -a "$totps" {{- if $profile.CanList }} - complete -c {{ $.Executable }} -n "__fish_seen_subcommand_from {{ $.TOTPCommand }}; and __fish_seen_subcommand_from $totps" -a "({{ $.DoTOTPList }})" +complete -c {{ $.Executable }} -n "__fish_seen_subcommand_from {{ $.TOTPCommand }}; and __fish_seen_subcommand_from $totps; and test (count (commandline -opc)) -lt 4" -a "({{ $.DoTOTPList }})" {{- end}} {{- end}} {{- if $profile.CanList }}