Move zplug to partial

This commit is contained in:
Paweł Płazieński 2024-02-27 19:44:01 +01:00
parent fe2169a056
commit 19957b865f
2 changed files with 24 additions and 22 deletions

24
zsh.d/zplug.zsh Normal file
View File

@ -0,0 +1,24 @@
# vim: ft=zsh
if [[ ! -f '/usr/share/zplug/init.zsh' ]]; then
return
fi
source /usr/share/zplug/init.zsh
zplug "plugins/git", from:oh-my-zsh
zplug "plugins/sudo", from:oh-my-zsh
zplug "plugins/command-not-found", from:oh-my-zsh
zplug "zsh-users/zsh-syntax-highlighting"
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-history-substring-search"
zplug "zsh-users/zsh-completions"
zplug "junegunn/fzf"
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
zplug load

22
zshrc
View File

@ -657,28 +657,6 @@ for partial in ${ZDOTDIR}/zsh.d/*.zsh; do
source $partial
done
#---------------------------------- Addons ------------------------------------
if [[ -f '/usr/share/zplug/init.zsh' ]]; then
source /usr/share/zplug/init.zsh
zplug "plugins/git", from:oh-my-zsh
zplug "plugins/sudo", from:oh-my-zsh
zplug "plugins/command-not-found", from:oh-my-zsh
zplug "zsh-users/zsh-syntax-highlighting"
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-history-substring-search"
zplug "zsh-users/zsh-completions"
zplug "junegunn/fzf"
fi
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
zplug load
#---------------------------------- Broot ------------------------------------
function br {
local cmd cmd_file code