awslabs / aws-shell

An integrated shell for working with the AWS CLI.
Apache License 2.0
7.15k stars 770 forks source link

!ls invokes ls in shell, but !cd won't invoke cd in shell #199

Open starkshaw opened 6 years ago

starkshaw commented 6 years ago

Hi,

I understand you have already implemented .cd as the change directory function. But since cd is a shell command as well, would it be possible to have !cd invoke cd as well?

Also, could we have the auto-completion of commands or files when pressing tab key?

joguSD commented 6 years ago

The reason .cd exists is because when you run !cd it runs in a subprocess which doesn't affect the working directory of the shell, just the subprocess. I can see the value of auto-completing other command names and files though. Marking as a feature request.