Skip to content

Instantly share code, notes, and snippets.

@Locoxella
Created February 8, 2018 19:56
Show Gist options
  • Save Locoxella/0f7818123fb71896951084aba92fe3bc to your computer and use it in GitHub Desktop.
Save Locoxella/0f7818123fb71896951084aba92fe3bc to your computer and use it in GitHub Desktop.
awscli autocomplete on fish
#!/usr/bin/env fish
#
# Configure autocomplete for fish since aws has it disabled yet
#
# More info: https://aws.uservoice.com/forums/598381-aws-command-line-interface/suggestions/33168313-autocomplete-for-fish-shell
# Credits: https://github.com/otakumike, http://stackoverflow.com/users/808850/scooter-dangle
#
complete --command aws --no-files --arguments '(begin; set --local --export COMP_SHELL fish; set --local --export COMP_LINE (commandline); aws_completer | sed \'s/ $//\'; end)'
@Locoxella
Copy link
Author

Or, with omf, you can install aws plugin https://github.com/oh-my-fish/plugin-aws

omf install aws

@jffiorillo
Copy link

I'm getting the same error: oh-my-fish/plugin-aws#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment