Show emoji clock if the plugin is enabled
This commit is contained in:
parent
f745259c35
commit
03db1143dd
@ -168,7 +168,12 @@ prompt_status() {
|
|||||||
|
|
||||||
# Shows the current time
|
# Shows the current time
|
||||||
prompt_time() {
|
prompt_time() {
|
||||||
|
# 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 " %*%"
|
prompt_segment cyan black " %*%"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
## Main prompt
|
## Main prompt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user