Hi ,
I like to nano all teh time ,but the vi also good .
Here you go how to add nano editor on OPENBSD
step 1 – Remotely add the nano package
step 2 – Using nano
step 3 – Making nano your default editor in BASH
1. Remotely add the nano package
# pkg_add -v ftp://ftp.openbsd.org/pub/OpenBSD/4.6/packages/i386/nano-2.0.9.tgz
2. Using nano to edit your hosts file
# nano /etc/hosts
3. Adding an entry to your .bash_profile file
# cd
# echo export EDITOR=nano >> .bash_profile
Having the changes ‘take’ without logging out:
# cd
# source .bash_profile
Many thanks for this, much appreciated. Latest command equivalent for me on 6.2 was –
pkg_add -v https://mirror.bytemark.co.uk/pub/OpenBSD/6.2/packages/amd64/nano-2.8.7.tgz
List of other mirrors at https://www.openbsd.org/ftp.html