commit 91a2ed3cbcb7507fe733c18cd2ad5d5a589bf351 parent 5850247f1d958b7e9b21e2a3f2f451181df88773 Author: Sean Enck <sean@ttypty.com> Date: Sat, 20 Apr 2024 08:23:39 -0400 fish needs to adhere to default override Diffstat:
| M | internal/app/doc/fish.sh | | | 10 | ++++++---- |
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/internal/app/doc/fish.sh b/internal/app/doc/fish.sh @@ -26,14 +26,16 @@ end {{- end}} function {{ $.Executable }}-completions + if [ -z "{{ $.DefaultCompletion }}" ] || [ "{{ $.DefaultCompletion }}" != "{{ $.IsYes }}" ] {{- range $idx, $prof := $.Profiles }} {{- if not $prof.IsDefault }} - if {{ $prof.Conditional }} - {{ $prof.Name }} - return - end + if {{ $prof.Conditional }} + {{ $prof.Name }} + return + end {{- end}} {{- end}} + end {{ $.DefaultProfile.Name }} end