summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2015-01-27 06:43:06 +0300
committerBen Hilburn <bhilburn@gmail.com>2015-01-29 07:59:23 +0300
commitd86013365f6bf107be80ed248f1fd447f79bc480 (patch)
tree21d2305ab23b1233758497adc6a8303aa71f6b1b /powerlevel9k.zsh-theme
parentcfa8d2558e5e616dc5e97439068b7f5e10f01131 (diff)
powerlevel-9k: getting rid of the totally fake hg vcs_info
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r--powerlevel9k.zsh-theme36
1 files changed, 0 insertions, 36 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 594dcc0f..223678da 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -157,42 +157,6 @@ function +vi-git-tagname() {
[[ -n ${tag} ]] && hook_com[branch]=" %F{black}${tag}%f"
}
-# Mercurial status
-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
- left_prompt_segment red white
- st='±'
- elif [[ -n $(hg prompt "{status|modified}") ]]; then
- # if any modification
- left_prompt_segment yellow black
- st='±'
- else
- # if working copy is clean
- left_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
- left_prompt_segment red black
- st='±'
- elif `hg st | grep -Eq "^(M|A)"`; then
- left_prompt_segment yellow black
- st='±'
- else
- left_prompt_segment green black
- fi
- echo -n "☿ $rev@$branch" $st
- fi
- fi
-}
-
# Dir: current working directory
prompt_dir() {
left_prompt_segment blue black '%~'