From 1bb40b401963a4c3b7b7fc0c2bc51e3b33bd9ec4 Mon Sep 17 00:00:00 2001 From: Justin Hileman <justin@justinhileman.info> Date: Mon, 17 Nov 2014 21:03:12 -0800 Subject: [PATCH] No need to save $RETVAL, $status works just fine --- themes/bobthefish/fish_prompt.fish | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/themes/bobthefish/fish_prompt.fish b/themes/bobthefish/fish_prompt.fish index 841ae8b..32efc56 100644 --- a/themes/bobthefish/fish_prompt.fish +++ b/themes/bobthefish/fish_prompt.fish @@ -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 -- GitLab