Shame on you #gentoo! Your default editor should be #vim or #emacs, and definitely not #nano!
https://linuxrocks.online/media/W377KAX4x2liUj71R2M