From 0401f4d2cbc3fb11541840722af51b329622b594 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 3 Sep 2021 04:29:38 +0300 Subject: [PATCH] fix #98 --- pfetch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pfetch b/pfetch index 8315f44..4fa9e81 100755 --- a/pfetch +++ b/pfetch @@ -1036,7 +1036,9 @@ get_shell() { get_editor() { # Display the value of '$VISUAL', if it's empty, display the # value of '$EDITOR'. - log editor "${VISUAL:-$EDITOR}" >&6 + editor=${VISUAL:-"$EDITOR"} + + log editor "${editor##*/}" >&6 } get_palette() {