From ecc61cb7476963c3dcd9733dc7b7807fb61e577f Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 3 Apr 2022 04:42:47 +0200 Subject: [PATCH] Only set ALTERNATE_EDITOR to nano if nano is in PATH --- .config/zsh/.zprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index c24501d..b506176 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -31,12 +31,12 @@ elif command -v emacs > /dev/null; then VISUAL="$(command -v emacs)" elif command -v nano > /dev/null; then VISUAL="$(command -v nano)" + export ALTERNATE_EDITOR="$(command -v nano)" elif command -v vim > /dev/null; then VISUAL="$(command -v vim)" fi export VISUAL export EDITOR="${VISUAL}" -export ALTERNATE_EDITOR="$(command -v nano)" ############################# Plugins ##########################################