diff options
Diffstat (limited to 'dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/git.zsh')
| m--------- | dot-oh-my-zsh | 0 | ||||
| -rw-r--r-- | dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/git.zsh | 40 |
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/git.zsh b/dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/git.zsh deleted file mode 100644 index c310b53b..00000000 --- a/dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/git.zsh +++ /dev/null @@ -1,40 +0,0 @@ -# -# Git -# - -# ------------------------------------------------------------------------------ -# Configuration -# ------------------------------------------------------------------------------ - -SPACESHIP_GIT_SHOW="${SPACESHIP_GIT_SHOW=true}" -SPACESHIP_GIT_PREFIX="${SPACESHIP_GIT_PREFIX="on "}" -SPACESHIP_GIT_SUFFIX="${SPACESHIP_GIT_SUFFIX="$SPACESHIP_PROMPT_DEFAULT_SUFFIX"}" -SPACESHIP_GIT_SYMBOL="${SPACESHIP_GIT_SYMBOL=" "}" - -# ------------------------------------------------------------------------------ -# Dependencies -# ------------------------------------------------------------------------------ - -source "$SPACESHIP_ROOT/sections/git_branch.zsh" -source "$SPACESHIP_ROOT/sections/git_status.zsh" - -# ------------------------------------------------------------------------------ -# Section -# ------------------------------------------------------------------------------ - -# Show both git branch and git status: -# spaceship_git_branch -# spaceship_git_status -spaceship_git() { - [[ $SPACESHIP_GIT_SHOW == false ]] && return - - local git_branch="$(spaceship_git_branch)" git_status="$(spaceship_git_status)" - - [[ -z $git_branch ]] && return - - spaceship::section \ - 'white' \ - "$SPACESHIP_GIT_PREFIX" \ - "${git_branch}${git_status}" \ - "$SPACESHIP_GIT_SUFFIX" -} |
