-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update aws-sso.fish to add completion helper for aws-sso-profile #865
Update aws-sso.fish to add completion helper for aws-sso-profile #865
Conversation
@drmikecrowe If you feel there is information useful to others, there is the That said, I don't run NixOS and not sure how I can test this sorta thing? Any suggestions? |
internal/helper/aws-sso.fish
Outdated
set -q AWS_SSO_HELPER_ARGS; or set --local _args -L error --no-config-check | ||
set -l cur (commandline -t) | ||
|
||
set -l cmd "aws-sso list $_args --csv -P Profile=$cur Profile" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should aws-sso
be {{ .Executable }}
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
I should also mention that tab completion with fish for items with a |
How about
|
Nope. None of the fish specific variables seem to be exported? |
The only other idea I have is to pass in an environment variable indicating fish. Something like: set -l cmd "__FISH_SHELL=1 {{ .Executable }} list $_args --csv -P Profile=$cur Profile" Can you share where it breaks? I changed my profiles to use |
if you do anyways, i opened a ticket with fish and see what they say: fish-shell/fish-shell#10553 |
I think this add a missing fish completion for
aws-sso-profile
command to fish completions. I'm using NixOS, so I had to add this from a test script, but I'm pretty confident this is useful.As an side note, the following is how I'm configuring the completions in my NixOS config. If we had a discussion area or wiki, this might be useful to others. Open to suggestions as to how you want to share: