mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 15:01:16 -03:00
sample_prompts/classic_status: Clean
- Remove unused variable - Use `test` instead of `[ ]`
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user