From b9bc625059eb37de4619ffc818beee17b90814e3 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Tue, 26 Mar 2019 08:13:33 -0700 Subject: [PATCH] Clean up theme_newline_prompt No need for a variable, just echo. Allow setting $theme_newline_prompt to an empty string. --- fish_prompt.fish | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 9006b0d..20dc72a 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -376,14 +376,14 @@ function __bobthefish_finish_segments -S -d 'Close open prompt segments' if [ "$theme_newline_cursor" = 'yes' ] echo -ens "\n" set_color $fish_color_autosuggestion - if [ "$theme_newline_prompt" != '' ] - set prompt "$theme_newline_prompt" + + if set -q theme_newline_prompt + echo -ens "$theme_newline_prompt" else if [ "$theme_powerline_fonts" = "no" ] - set prompt '> ' + echo -ns '> ' else - set prompt "$right_arrow_glyph " + echo -ns "$right_arrow_glyph " end - echo -ens "$prompt" else if [ "$theme_newline_cursor" = 'clean' ] echo -ens "\n" end