newest version of dotfiles
This commit is contained in:
parent
4e44332045
commit
1f9d47b42c
11 changed files with 87 additions and 62 deletions
|
@ -1,6 +1,11 @@
|
|||
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' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq torvalds' 'joke hq misc' 'colorscript random' 'fastfetch')
|
||||
eval "$potentialBanner[$RANDOM%$#potentialBanner+1]"
|
||||
|
@ -8,9 +13,6 @@ eval "$potentialBanner[$RANDOM%$#potentialBanner+1]"
|
|||
# disable flowcontrol
|
||||
stty -ixon
|
||||
|
||||
# local env exports
|
||||
source "$XDG_DATA_HOME"/zsh/config/env.zsh
|
||||
|
||||
# initialize completion system
|
||||
source "$ZDOTDIR"/files/compinit.zsh
|
||||
|
||||
|
@ -20,17 +22,20 @@ source "$XDG_DATA_HOME"/antidote/antidote.zsh
|
|||
zstyle ':antidote:bundle' use-friendly-names 'yes'
|
||||
antidote load
|
||||
|
||||
# eval stuff
|
||||
# source files
|
||||
source "$ZDOTDIR"/files/evalstuff.zsh
|
||||
source "$ZDOTDIR"/files/aliases.zsh
|
||||
source "$ZDOTDIR"/files/functions.zsh
|
||||
source "$ZDOTDIR"/files/options.zsh
|
||||
source "$ZDOTDIR"/files/distroicon.zsh
|
||||
|
||||
# completion stuff
|
||||
# completion files
|
||||
source "$ZDOTDIR"/files/bashcomps.zsh
|
||||
source "$ZDOTDIR"/files/sshcomp.zsh
|
||||
|
||||
# local overrides
|
||||
for sourced in "$XDG_DATA_HOME"/zsh/files/*; do source $sourced; done
|
||||
|
||||
# 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)"
|
||||
eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]")"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue