fa93ea0d75c5079407862c3bbb48d2131577cd5d

Author
cori schlegel <46317+cori@users.noreply.github.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

[rkj-repos] Check for 'hg prompt' and exit if not found (#6655)

* Check for  extension, and exit if not found. Addresses #6036

* Fix styles in rkj-repos.theme

Diff

This diff is truncated to protect this page.

 1diff --git a/themes/rkj-repos.zsh-theme b/themes/rkj-repos.zsh-theme
 2index ba2a0dba697620d07f99dd30a46f6f7eefa93380..0d5a166ba8ed36cb95a3a3d0775b9f31e88edd2f 100644
 3--- a/themes/rkj-repos.zsh-theme
 4+++ b/themes/rkj-repos.zsh-theme
 5@@ -1,6 +1,9 @@
 6-# user, host, full path, and time/date
 7-# on two lines for easier vgrepping
 8-# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
 9+# user, host, full path, and time/date on two lines for easier vgrepping
10+
11+if ! grep -q "prompt" ~/.hgrc; then 
12+  echo "This theme requires 'hg prompt' (https://bitbucket.org/sjl/hg-prompt/overview)"
13+  return 1
14+fi
15 
16 function hg_prompt_info {
17     hg prompt --angle-brackets "\
18@@ -33,4 +36,3 @@ function retcode() {}