updated stuff
This commit is contained in:
parent
2e89349994
commit
10891f685b
1 changed files with 10 additions and 8 deletions
16
zsh/.zshrc
16
zsh/.zshrc
|
@ -2,15 +2,13 @@ if [[ -r "$HOME/.cache/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
source "$HOME/.cache/p10k-instant-prompt-${(%):-%n}.zsh"
|
source "$HOME/.cache/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export os=$(grep -E "^ID=" /etc/*release | cut -d= -f2)
|
||||||
|
|
||||||
source $ZDOTDIR/exports.zsh
|
source $ZDOTDIR/exports.zsh
|
||||||
source $ZDOTDIR/dircolor.zsh
|
source $ZDOTDIR/dircolor.zsh
|
||||||
|
|
||||||
if [[ $(grep -E "^ID" /etc/*release | cut -d= -f2) == "arch" ]]; then
|
source $share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
source $share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source $share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
||||||
source $share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
|
||||||
else
|
|
||||||
source $share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
||||||
fi
|
|
||||||
|
|
||||||
autoload -Uz compinit
|
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
|
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
|
||||||
|
@ -18,12 +16,16 @@ if [[ -n $HOME/.cache/zsh/compdump(#qN.mh+24) ]]; then compinit -d $HOME/.cache/
|
||||||
for file in $ZDOTDIR/libs/*.zsh; do source "$file"; done
|
for file in $ZDOTDIR/libs/*.zsh; do source "$file"; done
|
||||||
for file in $ZDOTDIR/plgs/*.zsh; do source "$file"; done
|
for file in $ZDOTDIR/plgs/*.zsh; do source "$file"; done
|
||||||
|
|
||||||
if [[ $(grep -E "^ID" /etc/*release | cut -d= -f2) == "arch" ]]; then
|
if [[ $os == "arch" ]]; then
|
||||||
source $fzf/completion.zsh
|
source $fzf/completion.zsh
|
||||||
source $fzf/key-bindings.zsh
|
source $fzf/key-bindings.zsh
|
||||||
source $share/doc/pkgfile/command-not-found.zsh
|
source $share/doc/pkgfile/command-not-found.zsh
|
||||||
else
|
else
|
||||||
|
if [[ $os == "debian" || $os == "ubuntu" ]]; then
|
||||||
source $share/doc/fzf/examples/key-bindings.zsh
|
source $share/doc/fzf/examples/key-bindings.zsh
|
||||||
|
else
|
||||||
|
source $share/fzf/shell/key-bindings.zsh
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source $ZDOTDIR/tmux/tmux.zsh
|
source $ZDOTDIR/tmux/tmux.zsh
|
||||||
|
|
Loading…
Add table
Reference in a new issue