Mercurial > dotfiles
changeset 491:f1d1eab204aa
Fix paths to nvim for SUDO_EDITOR
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sat, 27 Nov 2021 16:00:20 +0100 |
parents | f49b0b91925c |
children | 16cc2c9c3d6b |
files | dot_bashrc dot_zshrc |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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)