mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
parent
81cd035950
commit
5b1ff9459a
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ function fish_right_prompt
|
||||||
# B | | | | m | r | m | u | | | |
|
# B | | | | m | r | m | u | | | |
|
||||||
# ? | | | | m | r | m | u | | | t |
|
# ? | | | | m | r | m | u | | | t |
|
||||||
# _ | | | d | m | r | m | u | | | |
|
# _ | | | 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
|
set -l status_added 0
|
||||||
if string match -qr '[ACDMT][ MT]|[ACMT]D' $porcelain_status
|
if string match -qr '[ACDMT][ MT]|[ACMT]D' $porcelain_status
|
||||||
|
|
Loading…
Reference in a new issue