Is it possible to make bash change directory in command line simply by typing that directory without any commands like cd?For example is it possible instead of writing this:$ cd /tmpI just want to write only this:$ /tmpIn other words if I call directory as an application then I want to set that directory as a working one.
Change directory without typing cd?
bash;command line;alias;cd command
In bash there is also autocd option. You can enable it by using shopt -s autocd:pbm@tauri ~ $ shopt -s autocdpbm@tauri ~ $ django # Now just type thiscd ./django    <- it's done automaticallypbm@tauri ~/django $