Skip to content

Commit

Permalink
Fix status reporting (#197)
Browse files Browse the repository at this point in the history
The status needs to be saved before anything else is done, otherwise it will get
overwritten.  Since commit ac45a5c this was the case with the `if` block in
a way that `last_status` was always `0`.
  • Loading branch information
nertpinx authored and bobthecow committed Mar 29, 2019
1 parent b9bc625 commit 3b2e847
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fish_prompt.fish
Original file line number Diff line number Diff line change
Expand Up @@ -969,15 +969,15 @@ end
# ==============================

function fish_prompt -d 'bobthefish, a fish theme optimized for awesome'
# Save the last status for later (do this before anything else)
set -l last_status $status

# Use a simple prompt on dumb terminals.
if [ "$TERM" = "dumb" ]
echo "> "
return
end

# Save the last status for later (do this before the `set` calls below)
set -l last_status $status

__bobthefish_glyphs
__bobthefish_colors $theme_color_scheme

Expand Down

0 comments on commit 3b2e847

Please sign in to comment.