mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Add show error code option
This commit is contained in:
parent
c54707a136
commit
0ab6f79efe
@ -30,6 +30,7 @@
|
||||
# set -g theme_avoid_ambiguous_glyphs yes
|
||||
# set -g theme_nerd_fonts yes
|
||||
# set -g default_user your_normal_user
|
||||
# set -g show_error_code yes
|
||||
|
||||
# ===========================
|
||||
# Helper methods
|
||||
@ -267,8 +268,12 @@ function __bobthefish_prompt_status -S -a last_status -d 'Display symbols for a
|
||||
__bobthefish_start_segment fff 000
|
||||
if [ "$nonzero" ]
|
||||
set_color $__bobthefish_med_red --bold
|
||||
if [ "$show_error_code" = 'yes' ]
|
||||
echo -n $last_status' '
|
||||
else
|
||||
echo -n $__bobthefish_nonzero_exit_glyph
|
||||
end
|
||||
end
|
||||
|
||||
if [ "$superuser" ]
|
||||
set_color $__bobthefish_med_green --bold
|
||||
|
Loading…
Reference in New Issue
Block a user