sample_prompts/classic_status: Clean

- Remove unused variable
- Use `test` instead of `[ ]`
This commit is contained in:
Fabian Homborg 2018-11-11 14:07:30 +01:00
parent 19bcf9fc36
commit bcfef9268d

View file

@ -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