Browse Source

modified theme to use dot instead of git if in dotfiles

master
Marc 4 years ago
parent
commit
3a9733942d
1 changed files with 6 additions and 1 deletions
  1. 7
      .config/zsh/themes/agnoster.zsh-theme

7
.config/zsh/themes/agnoster.zsh-theme

@ -93,7 +93,12 @@ prompt_context() {
prompt_git() { prompt_git() {
local color ref local color ref
is_dirty() { is_dirty() {
test -n "$(git status --porcelain --ignore-submodules)"
if [[ "${PWD}" == "${HOME}/dotfiles" ]]
then
test -n "$(dot status --porcelain --ignore-submodules)"
else
test -n "$(git status --porcelain --ignore-submodules)"
fi
} }
ref="$vcs_info_msg_0_" ref="$vcs_info_msg_0_"
if [[ -n "$ref" ]]; then if [[ -n "$ref" ]]; then

Loading…
Cancel
Save