3 ms·
fc builtin does the same thing. No ctrl-key sequences required. Just type "fc" With previous commands, one can also specify a particular editor instead of de
by 1vuio0pswjnm7 2y ago
fc builtin does the same thing. No ctrl-key sequences required.
Just type "fc"
With previous commands, one can also specify a particular editor instead of default $EDITOR
For example, to edit the previous command with ed when EDITOR=vi
fc -e ed
A quick way to make shell scripts from command line history in vi mode (where 15th entry in history is the desired command line):
fc 15
w1.sh
%d
wq