Skip to content
Snippets Groups Projects
Commit 1bb40b40 authored by Justin Hileman's avatar Justin Hileman
Browse files

No need to save $RETVAL, $status works just fine

parent c839fafd
Branches
No related merge requests found
...@@ -181,7 +181,7 @@ function __bobthefish_prompt_status -d 'Display symbols for a non zero exit stat ...@@ -181,7 +181,7 @@ function __bobthefish_prompt_status -d 'Display symbols for a non zero exit stat
set -l bg_jobs set -l bg_jobs
# Last exit was nonzero # Last exit was nonzero
if [ $RETVAL -ne 0 ] if [ $status -ne 0 ]
set nonzero $__bobthefish_nonzero_exit_glyph set nonzero $__bobthefish_nonzero_exit_glyph
end end
...@@ -345,7 +345,6 @@ end ...@@ -345,7 +345,6 @@ end
# =========================== # ===========================
function fish_prompt -d 'bobthefish, a fish theme optimized for awesome' function fish_prompt -d 'bobthefish, a fish theme optimized for awesome'
set -g RETVAL $status
__bobthefish_prompt_status __bobthefish_prompt_status
__bobthefish_prompt_user __bobthefish_prompt_user
if __bobthefish_in_virtualfish_virtualenv if __bobthefish_in_virtualfish_virtualenv
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment