Skip to content

Commit

Permalink
Clean up theme_newline_prompt
Browse files Browse the repository at this point in the history
No need for a variable, just echo. Allow setting $theme_newline_prompt to an empty string.
  • Loading branch information
bobthecow committed Mar 26, 2019
1 parent 7d15e1b commit b9bc625
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fish_prompt.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9bc625

Please sign in to comment.