mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
sample_prompts/classic_status: Clean
- Remove unused variable - Use `test` instead of `[ ]`
This commit is contained in:
parent
19bcf9fc36
commit
bcfef9268d
1 changed files with 1 additions and 2 deletions
|
@ -5,8 +5,7 @@ function fish_prompt --description "Write out the prompt"
|
|||
# Save our status
|
||||
set -l last_status $status
|
||||
|
||||
set -l last_status_string ""
|
||||
if [ $last_status -ne 0 ]
|
||||
if test $last_status -ne 0
|
||||
printf "%s(%d)%s " (set_color red --bold) $last_status (set_color normal)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue