mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-31 23:28:45 +00:00
sample_prompts/scales: Silence one last git call
Fixes #9975
(cherry picked from commit 5b1ff9459a
)
This commit is contained in:
parent
136b99839b
commit
7260e1f828
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue