Show emoji clock if the plugin is enabled

This commit is contained in:
David Todd 2021-03-31 14:24:54 -05:00
parent f745259c35
commit 03db1143dd
1 changed files with 6 additions and 1 deletions

View File

@ -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