22 lines
1 KiB
Text
22 lines
1 KiB
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
|
|
|
|
# deduplicate path
|
|
typeset -U path PATH
|
|
path+=("$XDG_DATA_HOME"/JetBrains/Toolbox/scripts) # jetbrains toolbox
|
|
path+=("$HOME"/.local/bin) # local bin
|
|
|
|
# startup banner
|
|
potentialBanner=('joke bofh' 'joke dad' 'fastfetch') # 'colorscript random' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq mimsc'
|
|
eval "$potentialBanner[$RANDOM%$#potentialBanner+1]"
|
|
|
|
# source plugins
|
|
eval "$(sheldon source)"
|
|
|
|
# local overrides
|
|
for sourced in "$XDG_DATA_HOME"/zsh/files/*; do source $sourced; done
|
|
|
|
# theme
|
|
#potentialTheme=('emodipt-extend') # 'kali' 'lambda' 'bubblesextra' 'illusi0n' 'nordtron' 'di4am0nd' 'atomic'
|
|
#eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1].omp.json")"
|
|
eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/emodipt-extend.omp.json")"
|