mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
Check for extension, and exit if not found. Addresses #6036
This commit is contained in:
parent
2ff9560ad3
commit
4c52bc6147
1 changed files with 7 additions and 1 deletions
|
|
@ -1,6 +1,12 @@
|
|||
# user, host, full path, and time/date
|
||||
# on two lines for easier vgrepping
|
||||
# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
|
||||
# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888 (dead link)
|
||||
|
||||
if ! grep -q "prompt" ~/.hgrc
|
||||
then
|
||||
echo "This theme requires 'hg prompt' (https://bitbucket.org/sjl/hg-prompt/overview)"
|
||||
return 1
|
||||
fi
|
||||
|
||||
function hg_prompt_info {
|
||||
hg prompt --angle-brackets "\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue