From a53cbdbc14d68c6b3d740b17fbbabeb8ff56a0eb Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 25 Dec 2017 11:04:50 +1100 Subject: [PATCH] general: Fix prompt on openBSD --- neofetch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 642cfbca..92890228 100755 --- a/neofetch +++ b/neofetch @@ -4132,7 +4132,11 @@ dynamic_prompt() { fi # Set the prompt location. - ((lines > 1)) && printf "%b" "\\e[${lines}B" + if ((lines > 1)) && [[ "$kernel_name" != "OpenBSD" ]]; then + printf "%b" "\\e[${lines}B" + else + tput cub "$lines" + fi } old_functions() {