I’ve just now removed vi, the editor also found in Linux that’s very user unfriendly, but an important command, chpass, that changes user database defaults to vi, but I instead prefer ee, the FreeBSD easy editor that’s similar to nano in Linux, working for the chpass command, here I’m fallen under the below options.
In short I need to run this to replace with bash as my own login shell for myself.
Running chpass within ee, this can be done thru,
set EDITOR=ee && sudo chpass hd_scania # hd_scania is my mutual online alias
or running ee on my own chpass directory, but requires database querying,
sudo /usr/libexec/locate.updatedb && locate hd_scania|grep -e chpass sudo ee /etc/path/to/my/chpass/file
Any other ways to have done a similar task?