Skip to content

Instantly share code, notes, and snippets.

@Starraider
Last active May 25, 2020 06:43
Show Gist options
  • Save Starraider/45c86eedf0924bfc0ec198e172e12df5 to your computer and use it in GitHub Desktop.
Save Starraider/45c86eedf0924bfc0ec198e172e12df5 to your computer and use it in GitHub Desktop.
Tips and Tricks for midnight commander

Tips and Tricks for midnight commander

How to make Midnight Commander exit to its current directory

Put the following line in your .bashrc or .zshrc:

alias mc=". /usr/local/Cellar/midnight-commander/4.8.24/libexec/mc/mc-wrapper.sh"

Of course you have to change the path to your own mc install path.

After restarting your terminal, mc should exit at the current selected path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment