From 88f7f0af2a9a6263f202453db6dad81f8e04fc91 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 9 Nov 2016 23:22:54 +1100 Subject: [PATCH] Misc: kde_config_dir: If the var exists already, don't run the entire function --- neofetch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index d2e74a6b..4987f708 100755 --- a/neofetch +++ b/neofetch @@ -2888,7 +2888,10 @@ cache() { # KDE config directory {{{ kde_config_dir() { - if [[ -n "$KDE_CONFIG_DIR" ]]; then + if [[ "$kde_config_dir" ]]; then + return + + elif [[ -n "$KDE_CONFIG_DIR" ]]; then kde_config_dir="$KDE_CONFIG_DIR" elif type -p kde5-config >/dev/null 2>&1; then