updated sheldon zsh config

This commit is contained in:
Nikolas Weger 2023-06-20 11:59:34 +02:00
parent 0084e63150
commit f77cf782a7

View file

@ -5,6 +5,8 @@
potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json')
if (( ${+commands[brew]} )); then
export POSH_THEME="$(brew --prefix oh-my-posh)/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]"
elif test "$(cat /etc/os-release | grep '^ID=' | cut -d'=' -f2)" = "nixos"; then
export POSH_THEME="/run/current-system/sw/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]"
else
export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]"
fi