Glen Pitt-Pladdy :: BlogUbuntu/Debian/Linux Mint and AWS CLI Autocomplete | |||
Those of us using modern Linux distros take bash completion for granted, so it's extremely frustrating when something arrives on the scene that doesn't do it! I've been using this on Linux Mint which is a Ubuntu/Debian derivative, but it's likely the same or very similar will work for Red Hat, CentOS, Fedora, Suse and other distros. Making it workIt turns out that Amazon has already provided everything you need in the form of the aws_completer command, it's just that it's not hooked into bash. To fix that is very simple - just add to your ~/.bashrc (create one if needed) the following line, plus the comments are probably a good idea for in a few months when it doesn't make sense any more: # AWS CLI completion as https://www.pitt-pladdy.com/blog/_20151025-080213_0000_Ubuntu_Debian_Linux_Mint_and_AWS_CLI_Autocomplete/ Now the next time you spin up a shell and tab with the aws command you should get: |
|||
This is a bunch of random thoughts, ideas and other nonsense, and is not intended to be taken seriously. I'm experimenting and mostly have no idea what I am doing with most of this so it should be taken with cuation and at your own risk. Intrustive technologies are minimised where possible. For the purposes of reducing abuse and other risks hCaptcha is used and has it's own policies linked from the widget.
Copyright Glen Pitt-Pladdy 2008-2023
|