From 21cc7bab938c6865988035266f2b374b2d61b5ed Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 26 Dec 2017 07:20:50 +1100 Subject: [PATCH] general: Fix prompt on openBSD --- neofetch | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 25feae3f..6a742f19 100755 --- a/neofetch +++ b/neofetch @@ -4132,10 +4132,11 @@ dynamic_prompt() { fi # Set the prompt location. - if ((lines > 1)) && [[ "$kernel_name" != "OpenBSD" ]]; then - printf "%b" "\\e[${lines}B" - else - tput cud "$lines" + if ((lines > 1)); then + case "$kernel_name" in + "OpenBSD") tput cud "$lines" ;; + *) printf "%b" "\\e[${lines}B" ;; + esac fi }