aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.56k stars 4.13k forks source link

Move command from auto prompt to bash history #5828

Open mithun-daa opened 3 years ago

mithun-daa commented 3 years ago

Is your feature request related to a problem? Please describe. Auto prompt is AWSOME! After building a command in Auto Prompt, the only option to rerun it is by going back into Auto Prompt

Describe the solution you'd like It would be nice to add it to the bash history so I could use the up arrow to re-run the command I build inside auto-prompt

Describe alternatives you've considered N/A

Additional context Not sure if this already exists but I just learned about Auto Prompt but I see it being immensely useful in building commands but would be nice to quickly run a previously constructed command from bash - especially when one is the Partial mode.

kdaily commented 3 years ago

Hi @mithun-daa,

Thank you! This was investigated when this feature was being worked on. It would likely be possible for shells like bash and zsh, but unknown how this would work on Windows to provide the same experience to all users. I'll mark as feature request - other individuals coming here can 👍🏻 the original comment or provide their enthusiasm for this!

jamesblau commented 3 years ago

This would work on Windows by default using WSL; bash support would pretty much support 2.5 out of the 3 major OS's.

yanping-li commented 2 years ago

Adding command to bash history will be super useful.