X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=admin%2Fprog%2Fbash_prompt;fp=admin%2Fprog%2Fbash_prompt;h=0436df4a951bac7043a6437255c0fcd4ba5036d8;hb=254e80ed9dc18935d3f0c9f7f2b70c307ff04194;hp=dc6f2935545b54d29213ac6850af837d59211a18;hpb=e686c95f63ac32a1d4eb6bc2a3627d20eace18f6;p=dotfiles.git diff --git a/admin/prog/bash_prompt b/admin/prog/bash_prompt index dc6f293..0436df4 100644 --- a/admin/prog/bash_prompt +++ b/admin/prog/bash_prompt @@ -46,7 +46,7 @@ prompt_git() { #git update-index --really-refresh -q &>/dev/null # check for unstaged changes - if [ -n "$(git ls-files --modified)" ]; then + if [ -n "$(git ls-files --modified :/)" ]; then s="$s*"; fi @@ -61,7 +61,7 @@ prompt_git() { fi # check for untracked files - if [ -n "$(git ls-files --others --exclude-standard)" ]; then + if [ -n "$(git ls-files --others --exclude-standard :/)" ]; then s="$s%"; fi