Make Midnight Commander Exit to Its Current Directory
It has annoyed me for a long time how Midnight Commander does not by default just exist to the directory you just moved to. That is often why I use Norton Commander clones of some kind, to browse directories fast and then obviously to also help do filemanagement overall.
But browsing to the folder I want to run commands in, quit Midnight Commander and then be in the folder where I launched MC from is pretty annoying.
So here is how to enable that feature.
Run the command
Code: Select all
nano ~/.profile
Then write the line (or copy it if you are using Putty):
Code: Select all
alias mc='source /usr/libexec/mc/mc-wrapper.sh'
Restart Putty, or exit the shell and reload it on the MiSTer to have it use these new settings and it should now exit to the active folder
I hope this might be made default on the MiSTer. But... once you know how I guess its easy enough to change.