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() {