Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: robbyrussell/oh-my-zsh
base: 470e1a1ecf
...
head fork: robbyrussell/oh-my-zsh
compare: bf98a2d68b
  • 3 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Jun 13, 2012
Kristi kristi Use grep to detect if untracked files exist instead of storing all th…
…e output of ls-files.
dee54a2
Kristi kristi add --directory flag 4d6b532
Commits on Jun 22, 2012
Robby Russell Merge pull request #1159 from kristi/master
Steef theme - Improved git untracked file detection
bf98a2d
Showing with 1 addition and 1 deletion.
  1. +1 −1  themes/steeef.zsh-theme
2  themes/steeef.zsh-theme
View
@@ -81,7 +81,7 @@ add-zsh-hook chpwd steeef_chpwd
function steeef_precmd {
if [[ -n "$PR_GIT_UPDATE" ]] ; then
# check for untracked files or updated submodules, since vcs_info doesn't
- if [[ ! -z $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then
+ if git ls-files --other --exclude-standard --directory 2> /dev/null | grep -q "."; then
PR_GIT_UPDATE=1
FMT_BRANCH="(%{$turquoise%}%b%u%c%{$hotpink%}●${PR_RST})"
else

No commit comments for this range

Something went wrong with that request. Please try again.