From 4d8bebec4bdb393b2fd1a971f2baebc079a5145c Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 23 Dec 2016 00:38:21 +1100 Subject: [PATCH] Info: Log if function was used before --- neofetch | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/neofetch b/neofetch index ac5f0985..c29429c1 100755 --- a/neofetch +++ b/neofetch @@ -531,6 +531,9 @@ get_shell() { } get_de() { + # If function was run, stop here. + (( "$de_run" == 1 )) && return + case "$os" in "Mac OS X") de="Aqua" ;; "Windows") @@ -582,6 +585,7 @@ get_de() { } get_wm() { + # If function was run, stop here. (( "$wm_run" == 1 )) && return if [[ -n "$DISPLAY" && "$os" != "Mac OS X" ]]; then @@ -1487,6 +1491,9 @@ get_font() { } get_term() { + # If function was run, stop here. + (( "$term_run" == 1 )) && return + # Check $PPID for terminal emulator. case "$os" in "Mac OS X")