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') eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" function source () { test -r "$1" && builtin source "$1" } stty -ixon # local env exports source "$XDG_DATA_HOME"/zsh/config/env.zsh # completion stuff source "$ZDOTDIR"/files/compinit.zsh source "$ZDOTDIR"/files/sshcomp.zsh # antidote test -r "$XDG_DATA_HOME"/antidote/antidote.zsh || git clone https://github.com/mattmc3/antidote.git "$XDG_DATA_HOME"/antidote source "$XDG_DATA_HOME"/antidote/antidote.zsh zstyle ':antidote:bundle' use-friendly-names 'yes' antidote load # eval stuff source "$ZDOTDIR"/files/evalstuff.zsh source "$ZDOTDIR"/files/aliases.zsh source "$ZDOTDIR"/files/functions.zsh source "$ZDOTDIR"/files/distroicon.zsh # bash completions source "$ZDOTDIR"/files/bashcomps.zsh # 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)"