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

@ -2,8 +2,13 @@ test -v DISTROBOX_HOST_HOME && { unset ZDOTDIR; exec zsh } # fix distrobox
test "x$TERMINALNAME" = "xalacritty" && eval "$(zellij setup --generate-auto-start zsh)" # autostart zellij only in alacritty
# startup banner
potentialBanner=('joke bofh' 'joke dad' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq torvalds' 'joke hq misc' 'colorscript random' 'fastfetch')
potentialBanner=('joke bofh' 'joke dad' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq misc' 'colorscript random' 'fastfetch')
eval "$potentialBanner[$RANDOM%$#potentialBanner+1]"
# theme
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="$XDG_DATA_HOME/omp/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]"
eval "$(oh-my-posh init zsh)"
# and source plugins
eval "$(sheldon source)"

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