sample_prompts/scales: Silence one last git call

Fixes #9975

(cherry picked from commit 5b1ff9459a)
This commit is contained in:
Fabian Boehm 2023-08-23 19:15:05 +02:00
parent 136b99839b
commit 7260e1f828

View file

@ -108,7 +108,7 @@ function fish_right_prompt
# B | | | | m | r | m | u | | | |
# ? | | | | m | r | m | u | | | t |
# _ | | | d | m | r | m | u | | | |
set -l porcelain_status (command git status --porcelain | string sub -l2)
set -l porcelain_status (command git status --porcelain 2>/dev/null | string sub -l2)
set -l status_added 0
if string match -qr '[ACDMT][ MT]|[ACMT]D' $porcelain_status