From 03db1143dd0ab79c1a518717eeec54042d979425 Mon Sep 17 00:00:00 2001 From: David Todd Date: Wed, 31 Mar 2021 14:24:54 -0500 Subject: [PATCH] Show emoji clock if the plugin is enabled --- omz/themes/agnoster.zsh-theme | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/omz/themes/agnoster.zsh-theme b/omz/themes/agnoster.zsh-theme index bc4dde9..8db3b05 100644 --- a/omz/themes/agnoster.zsh-theme +++ b/omz/themes/agnoster.zsh-theme @@ -168,7 +168,12 @@ prompt_status() { # Shows the current time prompt_time() { - prompt_segment cyan black " %*%" + # If the user has the emoji-clock plugin enabled, use that, otherwise use clock font icon + if type 'emoji-clock' > /dev/null; then + prompt_segment cyan black "$(emoji-clock) %*%" + else + prompt_segment cyan black " %*%" + fi } ## Main prompt