From 08320670ea4b3ac8de57be0b39cecb6e9c79c5ac Mon Sep 17 00:00:00 2001 From: swytch Date: Sat, 23 May 2020 15:49:12 +0200 Subject: [PATCH] feat: add `SUDO_EDITOR` running `sudo $EDITOR` can be risky -> use `sudoedit` instead -> need `SUDO_EDITOR` env variable --- .profile | 1 + 1 file changed, 1 insertion(+) diff --git a/.profile b/.profile index b32f89a..40083c9 100644 --- a/.profile +++ b/.profile @@ -16,6 +16,7 @@ export LESSHISTFILE="-" ## default programs export SUDO_ASKPASS="$HOME/.local/bin/dmenupass" +export SUDO_EDITOR="nvim" export EDITOR="nvim" export TERMINAL="st" export READER="zathura"