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: |
|||
Disclaimer: This is a load of random thoughts, ideas and other nonsense and is not intended to be taken seriously. I have no idea what I am doing with most of this so if you are stupid and naive enough to believe any of it, it is your own fault and you can live with the consequences. More importantly this blog may contain substances such as humor which have not yet been approved for human (or machine) consumption and could seriously damage your health if taken seriously. If you still feel the need to litigate (or whatever other legal nonsense people have dreamed up now), then please address all complaints and other stupidity to yourself as you clearly "don't get it".
Copyright Glen Pitt-Pladdy 2008-2022
|
Comments: