Move zplug to partial
This commit is contained in:
parent
fe2169a056
commit
19957b865f
24
zsh.d/zplug.zsh
Normal file
24
zsh.d/zplug.zsh
Normal 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
22
zshrc
@ -657,28 +657,6 @@ for partial in ${ZDOTDIR}/zsh.d/*.zsh; do
|
|||||||
source $partial
|
source $partial
|
||||||
done
|
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 ------------------------------------
|
#---------------------------------- Broot ------------------------------------
|
||||||
function br {
|
function br {
|
||||||
local cmd cmd_file code
|
local cmd cmd_file code
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user