stuffeth and thingeth

This commit is contained in:
eeleater 2023-10-05 14:21:29 +02:00
parent 4c5d377fef
commit d5fb522b19
8 changed files with 150 additions and 185 deletions

View file

@ -1,17 +1,3 @@
# starship
#_evalcache starship init zsh --print-full-init
# ohmyposh
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
eval "$(oh-my-posh init zsh)"
# evalstuff
_evalcache zoxide init --cmd cd zsh
_evalcache atuin init zsh