diff options
| author | Eddie Monge <eddie@eddiemonge.com> | 2013-11-14 16:17:23 -0800 | 
|---|---|---|
| committer | Eddie Monge <eddie@eddiemonge.com> | 2013-11-14 16:17:23 -0800 | 
| commit | 3930a63253c08eafb5baf73508031932e0ed7437 (patch) | |
| tree | 4e929d6ed4718583f284091bd199b5f7394fd446 | |
| parent | 7a7eda1287a6862e8d7d14a0dbd47018a787ad14 (diff) | |
| download | zsh-3930a63253c08eafb5baf73508031932e0ed7437.tar.gz zsh-3930a63253c08eafb5baf73508031932e0ed7437.tar.bz2 zsh-3930a63253c08eafb5baf73508031932e0ed7437.zip  | |
no tabs in a space-d file
| -rw-r--r-- | themes/agnoster.zsh-theme | 64 | 
1 files changed, 32 insertions, 32 deletions
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index 762f63c5b..01cdc80e5 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -95,38 +95,38 @@ prompt_git() {  }  prompt_hg() { -	local rev status -	if $(hg id >/dev/null 2>&1); then -		if $(hg prompt >/dev/null 2>&1); then -			if [[ $(hg prompt "{status|unknown}") = "?" ]]; then -				# if files are not added -				prompt_segment red white -				st='±' -			elif [[ -n $(hg prompt "{status|modified}") ]]; then -				# if any modification -				prompt_segment yellow black -				st='±' -			else -				# if working copy is clean -				prompt_segment green black -			fi -			echo -n $(hg prompt "☿ {rev}@{branch}") $st -		else -			st="" -			rev=$(hg id -n 2>/dev/null | sed 's/[^-0-9]//g') -			branch=$(hg id -b 2>/dev/null) -			if `hg st | grep -Eq "^\?"`; then -				prompt_segment red black -				st='±' -			elif `hg st | grep -Eq "^(M|A)"`; then -				prompt_segment yellow black -				st='±' -			else -				prompt_segment green black -			fi -			echo -n "☿ $rev@$branch" $st -		fi -	fi +  local rev status +  if $(hg id >/dev/null 2>&1); then +    if $(hg prompt >/dev/null 2>&1); then +      if [[ $(hg prompt "{status|unknown}") = "?" ]]; then +        # if files are not added +        prompt_segment red white +        st='±' +      elif [[ -n $(hg prompt "{status|modified}") ]]; then +        # if any modification +        prompt_segment yellow black +        st='±' +      else +        # if working copy is clean +        prompt_segment green black +      fi +      echo -n $(hg prompt "☿ {rev}@{branch}") $st +    else +      st="" +      rev=$(hg id -n 2>/dev/null | sed 's/[^-0-9]//g') +      branch=$(hg id -b 2>/dev/null) +      if `hg st | grep -Eq "^\?"`; then +        prompt_segment red black +        st='±' +      elif `hg st | grep -Eq "^(M|A)"`; then +        prompt_segment yellow black +        st='±' +      else +        prompt_segment green black +      fi +      echo -n "☿ $rev@$branch" $st +    fi +  fi  }  # Dir: current working directory  | 
