aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2021-09-03 04:29:38 +0300
committerDylan Araps <dylan.araps@gmail.com>2021-09-03 04:29:38 +0300
commit0401f4d2cbc3fb11541840722af51b329622b594 (patch)
tree44f5f300ca297b20d1d167e87af829359ff16e23
parent753119227a3f3db2bdb0a3d94d4530d051e41753 (diff)
downloadpfetch-0401f4d2cbc3fb11541840722af51b329622b594.tar.gz
fix #98
-rwxr-xr-xpfetch4
1 files changed, 3 insertions, 1 deletions
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() {