From 1f1390148af82e2270650db8ec3a5d6f95b7b853 Mon Sep 17 00:00:00 2001 From: Pavle Portic Date: Sat, 14 Nov 2020 16:44:48 +0100 Subject: [PATCH] Remove mercurial prompt --- boban.zsh-theme | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/boban.zsh-theme b/boban.zsh-theme index 58581a9..c24dd55 100644 --- a/boban.zsh-theme +++ b/boban.zsh-theme @@ -135,41 +135,6 @@ prompt_git() { fi } -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 -q "^\?"`; then - prompt_segment red black - st='±' - elif `hg st | grep -q "^[MA]"`; then - prompt_segment yellow black - st='±' - else - prompt_segment green black - fi - echo -n "☿ $rev@$branch" $st - fi - fi -} - # Dir: current working directory prompt_dir() { if [[ -w "$PWD" ]]; then @@ -215,7 +180,6 @@ build_prompt() { prompt_context prompt_dir prompt_git - prompt_hg prompt_end }