squarefrog Posted September 5, 2015 Share Posted September 5, 2015 Each time I restart my server I have to re-add my favourite folders to mc. Is there anyway to save a config file for this so I don't have to recreate them each time? Link to comment
trurl Posted September 5, 2015 Share Posted September 5, 2015 I've not tried this, but I assume it is saving to the home folder of the root user. That folder will not survive a reboot, but you can copy it somewhere on /boot (flash) and then copy it back on reboot with a command in the go file, /boot/config/go. Link to comment
squarefrog Posted October 23, 2015 Author Share Posted October 23, 2015 Thanks trurl I finally got round to doing this. The file I was looking for was in ~/.config/mc/hotlist So I simply ran the following cp ~/.config/mc/hotlist /mnt/cache/appdata/mc/mc_hotlist Then added the following to bottom of the go file (/boot/config/go): # Copy midnight commander hotlist cp /mnt/cache/appdata/mc/mc_hotlist /root/.config/mc/hotlist I think in future I'll probably create a symbolic link to this file so I dont have to manually copy the file any time I add a directory path. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.