sample_prompts/scales: Silence one last git call

Fixes #9975
This commit is contained in:
Fabian Boehm 2023-08-23 19:15:05 +02:00
parent 81cd035950
commit 5b1ff9459a

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