28 lines
1.1 KiB
Text
28 lines
1.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
|
|
|
|
# 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" }
|
|
|
|
# local env exports
|
|
source "$XDG_DATA_HOME"/zsh/config/env.zsh
|
|
|
|
# completion stuff
|
|
source "$ZDOTDIR"/files/compinit.zsh
|
|
source "$ZDOTDIR"/files/bashcomps.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
|