From 4b6b887ca847c91977226b65bb0f468c5f8bc757 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Mon, 12 Feb 2024 14:15:37 +0200 Subject: [PATCH] feat(shell): use oh-my-posh if available --- base/bashrc | 5 ++++- base/zshrc | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/base/bashrc b/base/bashrc index 6b35778..bb18dd8 100644 --- a/base/bashrc +++ b/base/bashrc @@ -34,5 +34,8 @@ x-have rbenv && { eval "$(rbenv init - bash)" } -eval "$(starship init bash)" +# eval "$(starship init bash)" +x-have oh-my-posh && { + eval "$(oh-my-posh init bash --config $XDG_CONFIG_HOME/oh-my-posh.omp.json)" +} source "$DOTFILES/config/alias" diff --git a/base/zshrc b/base/zshrc index f04ae0d..b697e32 100755 --- a/base/zshrc +++ b/base/zshrc @@ -100,5 +100,7 @@ x-have rbenv && { } # eval "$(starship init zsh)" -eval "$(oh-my-posh init zsh --config $XDG_CONFIG_HOME/oh-my-posh.omp.json)" +x-have oh-my-posh && { + eval "$(oh-my-posh init zsh --config $XDG_CONFIG_HOME/oh-my-posh.omp.json)" +} source "$DOTFILES/config/alias"