Greyberry Posted December 30, 2020 Share Posted December 30, 2020 Hi, how can i make a persistent default path for midnightcommander? I want it to start with "/mnt/user" preferably on both sides. best regards Quote Link to comment
Squid Posted December 30, 2020 Share Posted December 30, 2020 By default mc uses the current path as the default. So you can "cd" to wherever you want to be prior to executing mc Or, you can edit /root/.config/mc/panels.ini to suit (google is your friend) Once you've got panels.ini working the way you like then you save the file to the flash drive and at boot time copy it back to the appropriate folder to make it persistent Quote Link to comment
Greyberry Posted January 4, 2021 Author Share Posted January 4, 2021 Thank you for the hints. I don't think panels.ini is capable to set both panels directories; at least i was not able to set the default dir of both panels via panels.ini. I now added an alias in the /boot/config/go script, and hope the alias will persist: alias mc='. /usr/share/mc/bin/mc-wrapper.sh /mnt/user /mnt/user' 2 Quote Link to comment
JoergHH Posted May 2, 2021 Share Posted May 2, 2021 On 1/4/2021 at 11:26 AM, Greyberry said: I now added an alias in the /boot/config/go script, and hope the alias will persist: alias mc='. /usr/share/mc/bin/mc-wrapper.sh /mnt/user /mnt/user' And did it work or does it work that way? Quote Link to comment
Greyberry Posted June 23, 2021 Author Share Posted June 23, 2021 I think it did work, but I am using Krusader for now. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.