Setup SUDO_EDITOR to use nvim
author |
zegervdv <zegervdv@me.com> |
date |
Sat, 27 Nov 2021 15:56:23 +0100 |
parents |
1635e29e0ed4 |
children |
f1d1eab204aa |
files |
dot_bashrc dot_zshrc |
diffstat |
2 files changed, 2 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/dot_bashrc Sun Nov 14 09:34:26 2021 +0100
+++ b/dot_bashrc Sat Nov 27 15:56:23 2021 +0100
@@ -104,6 +104,7 @@
export EDITOR=nvim
export HGEDITOR=nvim
+export SUDO_EDITOR=nvim
stty > /dev/null
--- a/dot_zshrc Sun Nov 14 09:34:26 2021 +0100
+++ b/dot_zshrc Sat Nov 27 15:56:23 2021 +0100
@@ -207,6 +207,7 @@
export EDITOR=nvim
export HGEDITOR=nvim
+export SUDO_EDITOR=nvim
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='ag -g ""'