dotfiles/dot_config/zsh/dot_zshrc
2023-10-27 19:41:01 +02:00

14 lines
700 B
Text

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 misc' 'colorscript random' 'fastfetch')
eval "$potentialBanner[$RANDOM%$#potentialBanner+1]"
# source plugins
eval "$(sheldon source)"
# theme
potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json')
export POSH_THEME="$XDG_DATA_HOME/omp/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]"
eval "$(oh-my-posh init zsh)"