# HG changeset patch # User zegervdv # Date 1638025220 -3600 # Node ID f1d1eab204aaa45c0fdd4dcd6cd41fca8e873ca3 # Parent f49b0b91925cae4b44ff0486f3beea87afaf0100 Fix paths to nvim for SUDO_EDITOR diff -r f49b0b91925c -r f1d1eab204aa dot_bashrc --- a/dot_bashrc Sat Nov 27 15:56:23 2021 +0100 +++ b/dot_bashrc Sat Nov 27 16:00:20 2021 +0100 @@ -104,7 +104,6 @@ export EDITOR=nvim export HGEDITOR=nvim -export SUDO_EDITOR=nvim stty > /dev/null @@ -136,6 +135,9 @@ [ -f ~/.bashrc.local ] && source ~/.bashrc.local +# Must run after local paths are added +export SUDO_EDITOR=$(which nvim) + if [ ! -f ~/.lscolors.parsed.sh ]; then echo 'Generating ls colors' dircolors --sh ~/.lscolors > ~/.lscolors.parsed.sh diff -r f49b0b91925c -r f1d1eab204aa dot_zshrc --- a/dot_zshrc Sat Nov 27 15:56:23 2021 +0100 +++ b/dot_zshrc Sat Nov 27 16:00:20 2021 +0100 @@ -207,8 +207,10 @@ export EDITOR=nvim export HGEDITOR=nvim -export SUDO_EDITOR=nvim [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh export FZF_DEFAULT_COMMAND='ag -g ""' [ -f ~/.zshrc.local ] && source ~/.zshrc.local + +# Must run after brew is loaded +export SUDO_EDITOR=$(which nvim)