3 ms·
Since vom and emacs were already proposed, there is a third classic in this round: Shell programming. Typically you have $EDITOR env set (to something like nano
by ktpsns 4y ago
Since vom and emacs were already proposed, there is a third classic in this round: Shell programming. Typically you have $EDITOR env set (to something like nano, vim, emacs, gedit, kwrite, etc) and then can include it in your script as in
echo stuff >> worklog
$EDITOR worklog && mailto someone
etc
- jmholla 4y agoIf you want to handle `$EDITOR` not being set, at least in bash, you can use one of it's parameter expansion features: ${EDITOR:-vim} Will use vim if `$EDITOR` is unset.