mirror of
https://github.com/KDE/kde-linux.git
synced 2026-05-24 16:30:18 -04:00
fixed zsh prompt error in git repo without a work tree
This commit is contained in:
@@ -52,7 +52,7 @@ parse_git_info() {
|
||||
local branch="$(git rev-parse --abbrev-ref HEAD 2>/dev/null)"
|
||||
local git_status_indicator=""
|
||||
|
||||
if [[ -n "$(git status --porcelain)" ]]; then
|
||||
if [[ -n "$(git status --porcelain 2>/dev/null)" ]]; then
|
||||
git_status_indicator="%F{red}*%f"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user