Re:Renaming files with mv without typing the name two times
by pknopf on Tuesday April 14, 2020 @01:26AM
(#22862990)
The more I read these comments/suggestions, the more I realize I'm bash'ing like a child. I seriously need to embrace my shell a little more.
[ Parent
| on HN ]
Re:Renaming files with mv without typing the name two times
by rmetzler on Tuesday April 14, 2020 @02:11AM
(#22863176)
Same for me. I knew the bash has emacs bindings and I know just enough to go to beginning, end, delete a word, etc. but I never knew you can start emacs with a shortcut like this. How do you even exit emacs properly?
Re:Renaming files with mv without typing the name two times
by bnegreve on Tuesday April 14, 2020 @03:43AM
(#22863571)
C-x C-s to save, C-x C-c to quit.
But you can also control which editor is going to be used to edit your command line by setting the EDITOR environment variable.
It also works for git, and other commands that need to spawn editors.