Skip to content

Commit

Permalink
Dev Root Check
Browse files Browse the repository at this point in the history
  • Loading branch information
Bradley Temple committed Mar 13, 2015
1 parent cbfd7a7 commit bdb6c21
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions zsh/themes/dvg-agnoster.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ prompt_context() {
fi
}

# Displays a segment if dev_root is set
prompt_dev_root() {
if [ "$DEV_ROOT" ]; then
prompt_segment 148 22 "✨ DR ✨"
fi

}

# Git: branch/detached head, dirty status
prompt_git() {
local ref dirty mode repo_path
Expand Down Expand Up @@ -169,6 +177,7 @@ build_prompt() {
RETVAL=$?
prompt_status
prompt_virtualenv
prompt_dev_root
prompt_context
prompt_dir
prompt_git
Expand Down

0 comments on commit bdb6c21

Please sign in to comment.