41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
if [[ -r "$HOME/.cache/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
source "$HOME/.cache/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
fi
|
|
|
|
export os=$(grep -E "^ID=" /etc/*release | cut -d= -f2)
|
|
|
|
source $ZDOTDIR/exports.zsh
|
|
source $ZDOTDIR/dircolor.zsh
|
|
|
|
source $share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
source $share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
|
|
|
autoload -Uz compinit
|
|
if [[ -n $HOME/.cache/zsh/compdump(#qN.mh+24) ]]; then compinit -d $HOME/.cache/zsh/compdump; else compinit -d $HOME/.cache/zsh/compdump -C; fi
|
|
|
|
for file in $ZDOTDIR/libs/*.zsh; do source "$file"; done
|
|
for file in $ZDOTDIR/plgs/*.zsh; do source "$file"; done
|
|
|
|
if [[ $os == "arch" ]]; then
|
|
fzfComp="/usr/share/fzf/completion.zsh"
|
|
fzfKeyb="/usr/share/fzf/key-bindings.zsh"
|
|
fi
|
|
|
|
if [[ $os == "debian" || $os == "ubuntu" ]]; then
|
|
fzfComp="/usr/share/doc/fzf/examples/completion.zsh"
|
|
fzfKeyb="/usr/share/doc/fzf/examples/key-bindings.zsh"
|
|
fi
|
|
|
|
if [[ $os == "fedora" ]]; then
|
|
fzfComp=""
|
|
fzfKeyb="/usr/share/fzf/shell/key-bindings.zsh"
|
|
fi
|
|
|
|
source $fzfComp &>/dev/null
|
|
source $fzfKeyb
|
|
|
|
source $ZDOTDIR/tmux/tmux.zsh
|
|
|
|
[[ ! -f $ZDOTDIR/.p10k.zsh ]] || source $ZDOTDIR/.p10k.zsh
|
|
|
|
source $share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|