mirror of
				https://github.com/oh-my-fish/theme-bobthefish.git
				synced 2025-06-13 13:03:54 +00:00 
			
		
		
		
	Clean up theme_newline_prompt
No need for a variable, just echo. Allow setting $theme_newline_prompt to an empty string.
This commit is contained in:
		
							parent
							
								
									7d15e1ba1a
								
							
						
					
					
						commit
						b9bc625059
					
				@ -376,14 +376,14 @@ function __bobthefish_finish_segments -S -d 'Close open prompt segments'
 | 
				
			|||||||
    if [ "$theme_newline_cursor" = 'yes' ]
 | 
					    if [ "$theme_newline_cursor" = 'yes' ]
 | 
				
			||||||
        echo -ens "\n"
 | 
					        echo -ens "\n"
 | 
				
			||||||
        set_color $fish_color_autosuggestion
 | 
					        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" ]
 | 
					        else if [ "$theme_powerline_fonts" = "no" ]
 | 
				
			||||||
            set prompt '> '
 | 
					            echo -ns '> '
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
            set prompt "$right_arrow_glyph "
 | 
					            echo -ns "$right_arrow_glyph "
 | 
				
			||||||
        end
 | 
					        end
 | 
				
			||||||
        echo -ens "$prompt"
 | 
					 | 
				
			||||||
    else if [ "$theme_newline_cursor" = 'clean' ]
 | 
					    else if [ "$theme_newline_cursor" = 'clean' ]
 | 
				
			||||||
        echo -ens "\n"
 | 
					        echo -ens "\n"
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user