mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
No need to save $RETVAL, $status works just fine
This commit is contained in:
parent
986f0e1ea1
commit
ea5640886b
@ -181,7 +181,7 @@ function __bobthefish_prompt_status -d 'Display symbols for a non zero exit stat
|
||||
set -l bg_jobs
|
||||
|
||||
# Last exit was nonzero
|
||||
if [ $RETVAL -ne 0 ]
|
||||
if [ $status -ne 0 ]
|
||||
set nonzero $__bobthefish_nonzero_exit_glyph
|
||||
end
|
||||
|
||||
@ -345,7 +345,6 @@ end
|
||||
# ===========================
|
||||
|
||||
function fish_prompt -d 'bobthefish, a fish theme optimized for awesome'
|
||||
set -g RETVAL $status
|
||||
__bobthefish_prompt_status
|
||||
__bobthefish_prompt_user
|
||||
if __bobthefish_in_virtualfish_virtualenv
|
||||
|
Loading…
Reference in New Issue
Block a user