updated antidote to newest state

This commit is contained in:
Nikolas Weger 2023-09-28 12:18:38 +02:00
parent 6d40f3fa63
commit f7cb8e5949
20 changed files with 343 additions and 269 deletions

View file

@ -2,13 +2,20 @@
#_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')
#export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]"
#eval "$(ohmyposh init zsh)"
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
#_evalcache navi widget zsh
#_evalcache direnv hook zsh
#eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)"
_evalcache navi widget zsh
_evalcache direnv hook zsh
#_evalcache ntfy shell-integration
eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)"