summaryrefslogtreecommitdiff
path: root/themes/emotty.zsh-theme
diff options
context:
space:
mode:
Diffstat (limited to 'themes/emotty.zsh-theme')
-rw-r--r--themes/emotty.zsh-theme10
1 files changed, 10 insertions, 0 deletions
diff --git a/themes/emotty.zsh-theme b/themes/emotty.zsh-theme
index 044b317e8..ba0840950 100644
--- a/themes/emotty.zsh-theme
+++ b/themes/emotty.zsh-theme
@@ -46,6 +46,16 @@
# is shown (see vcs_action_glyph variable, default: chevron).
# ------------------------------------------------------------------------------
+(( ${+functions[emotty]} )) || {
+ echo "error: the emotty theme requires the emotty plugin" >&2
+ return 1
+}
+
+(( ${+emoji} )) || {
+ echo "error: the emotty theme requires the emoji plugin" >&2
+ return 1
+}
+
user_prompt="$(emotty)"
root_prompt="$emoji[skull]"
warn_prompt="$emoji[collision_symbol]"