When using Nano, if I press Ctrl+O the editor will ask me to press Enter to confirm overwriting the file. This is annoying.
Is there a keyboard shortcut to save file as it is usual in other applications — to overwrite it immediately without any additional questions?
Best Answer
Edit the file
~/.nanorc
and add this:Now ctrl+s will save your file to the same filename without prompts.
However, use this feature with caution. It will not inform you if something else has modified the file since your last save. If that's not a possible issue for you, this should work good!