visudo e
Defaults env_keep += "EDITOR"
obrigado a Sato Katsura por me apontar
~ echo $EDITOR
/usr/bin/kak
~ sudo echo $EDITOR
/usr/bin/kak
~ su
Password:
⚡ /home/bjorn echo $EDITOR
/usr/bin/kak
⚡ /home/bjorn cat ~/.profile
# nvim editor config
# export EDITOR='/usr/bin/nvim'
# kakoune editor config
export EDITOR='/usr/bin/kak'
export PAGER=$HOME/.bin/kakpager
export MANPAGER=$HOME/.bin/kakmanpager
⚡ /home/bjorn cat ~/.zshenv
# nvim editor config
# export EDITOR='/usr/bin/nvim'
# kakoune editor config
export EDITOR='/usr/bin/kak'
export PAGER=$HOME/.bin/kakpager
export MANPAGER=$HOME/.bin/kakmanpager
...
⚡ /home/bjorn
mas ainda nano
visudo e
Defaults env_keep += "EDITOR"
obrigado a Sato Katsura por me apontar