summaryrefslogtreecommitdiff
path: root/themes/agnoster.zsh-theme
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-09-25 19:38:46 -0600
committerTuowen Zhao <ztuowen@gmail.com>2016-09-25 19:38:46 -0600
commit338947a74f9b042bb2550fad236ceae270c2280b (patch)
tree1ca36e72233bbf7e94943d8123a90e5cd6821761 /themes/agnoster.zsh-theme
parente3a28817b0a7ee5724884d9c132763af4a64182c (diff)
parent57fcee0f1c520a7c5e3aa5e2bde974154cdaf0c3 (diff)
downloadzsh-338947a74f9b042bb2550fad236ceae270c2280b.tar.gz
zsh-338947a74f9b042bb2550fad236ceae270c2280b.tar.bz2
zsh-338947a74f9b042bb2550fad236ceae270c2280b.zip
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'themes/agnoster.zsh-theme')
-rw-r--r--themes/agnoster.zsh-theme3
1 files changed, 2 insertions, 1 deletions
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
index 278a70181..c6c0a7ac1 100644
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -86,7 +86,7 @@ prompt_context() {
# Git: branch/detached head, dirty status
prompt_git() {
-
+ (( $+commands[git] )) || return
local PL_BRANCH_CHAR
() {
local LC_ALL="" LC_CTYPE="en_US.UTF-8"
@@ -128,6 +128,7 @@ prompt_git() {
}
prompt_bzr() {
+ (( $+commands[bzr] )) || return
if (bzr status >/dev/null 2>&1); then
status_mod=`bzr status | head -n1 | grep "modified" | wc -m`
status_all=`bzr status | head -n1 | wc -m`