From ee52b6a54774936c4eb432e711ca89b8ba8cd387 Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Fri, 17 Dec 2021 12:37:32 +0100 Subject: [PATCH] Added oh-my-posh to status function --- zsh.d/zshfunctions/status | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zsh.d/zshfunctions/status b/zsh.d/zshfunctions/status index bb16c31..c7b10b5 100644 --- a/zsh.d/zshfunctions/status +++ b/zsh.d/zshfunctions/status @@ -48,4 +48,11 @@ fi echo +print -nP "$FX[bold]oh-my-posh: " +if type oh-my-posh > /dev/null; then + print -P "$FG[002]installed$FX[reset] $FX[bold]- theme: '$FG[002]$POSH_THEME'$FX[reset]" +else + print -P "$FG[001]absent$FX[reset]" +fi + # vim: set ts=2 sw=2 tw=0 ft=sh :