summaryrefslogtreecommitdiff
path: root/dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/hg.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/hg.zsh')
m---------dot-oh-my-zsh0
-rw-r--r--dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/hg.zsh40
2 files changed, 0 insertions, 40 deletions
diff --git a/dot-oh-my-zsh b/dot-oh-my-zsh
new file mode 160000
+Subproject 6fe84bf5c82da7b1f6d7c5ec3e5c447721ac8ce
diff --git a/dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/hg.zsh b/dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/hg.zsh
deleted file mode 100644
index 7899aacd..00000000
--- a/dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/hg.zsh
+++ /dev/null
@@ -1,40 +0,0 @@
-#
-# Mercurial (hg)
-#
-
-# ------------------------------------------------------------------------------
-# Configuration
-# ------------------------------------------------------------------------------
-
-SPACESHIP_HG_SHOW="${SPACESHIP_HG_SHOW=true}"
-SPACESHIP_HG_PREFIX="${SPACESHIP_HG_PREFIX="on "}"
-SPACESHIP_HG_SUFFIX="${SPACESHIP_HG_SUFFIX="$SPACESHIP_PROMPT_DEFAULT_SUFFIX"}"
-SPACESHIP_HG_SYMBOL="${SPACESHIP_HG_SYMBOL="☿ "}"
-
-# ------------------------------------------------------------------------------
-# Dependencies
-# ------------------------------------------------------------------------------
-
-source "$SPACESHIP_ROOT/sections/hg_branch.zsh"
-source "$SPACESHIP_ROOT/sections/hg_status.zsh"
-
-# ------------------------------------------------------------------------------
-# Section
-# ------------------------------------------------------------------------------
-
-# Show both hg branch and hg status:
-# spaceship_hg_branch
-# spaceship_hg_status
-spaceship_hg() {
- [[ $SPACESHIP_HG_SHOW == false ]] && return
-
- local hg_branch="$(spaceship_hg_branch)" hg_status="$(spaceship_hg_status)"
-
- [[ -z $hg_branch ]] && return
-
- spaceship::section \
- 'white' \
- "$SPACESHIP_HG_PREFIX" \
- "${hg_branch}${hg_status}" \
- "$SPACESHIP_HG_SUFFIX"
-}