migrate from zplug to sheldon...

...(https://sheldon.cli.rs/): Fast, configurable, shell plugin manager

and as a consequence of a recent(-ish) update of zsh on fedora 35
(zsh.x86_64 5.8.1-1.fc35 @updates), fpath also has to be set manually.
This commit is contained in:
surtur 2022-03-25 23:57:54 +01:00
parent 3cdb63eef3
commit 31478dfdb6
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 27 additions and 21 deletions

@ -0,0 +1,18 @@
# `sheldon` configuration file
# ----------------------------
# See the documentation for more https://github.com/rossmacarthur/sheldon#readme
shell = "zsh"
[plugins]
[plugins.zsh-autosuggestions]
github = 'zsh-users/zsh-autosuggestions'
[plugins.zsh-history-substring-search]
github = 'zsh-users/zsh-history-substring-search'
[plugins.alias-tips]
github = 'djui/alias-tips'
[plugins.fast-syntax-highlighting]
github = 'zdharma-continuum/fast-syntax-highlighting'

30
.zshrc

@ -1,28 +1,16 @@
[ ! -d ~/.oh-my-zsh ] && sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" [ ! -d ~/.oh-my-zsh ] && sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
ZSH_DISABLE_COMPFIX=true
ZSH=$HOME/.oh-my-zsh ZSH=$HOME/.oh-my-zsh
ZSH_CACHE_DIR="$ZSH/cache" ZSH_CACHE_DIR="$ZSH/cache"
source ~/.zplug/init.zsh # necessary to include "/usr/share/zsh/"$(zsh --version| cut -d ' ' -f2)/functions"
zplug "zsh-users/zsh-autosuggestions", defer:2 # due to a breakage on fedora zsh version 5.8.1 (zsh.x86_64 5.8.1-1.fc35 @updates)
zplug "zsh-users/zsh-history-substring-search", defer:2 fpath=(
zplug "plugins/git", from:oh-my-zsh, defer:2 ~/.local/share/zsh/site-functions
zplug "plugins/gitignore", from:oh-my-zsh, defer:2 /usr/share/zsh/"$(zsh --version| cut -d ' ' -f2)/functions"
zplug "plugins/systemd", from:oh-my-zsh, defer:2 $fpath
zplug "plugins/dnf", from:oh-my-zsh, defer:2 )
zplug "djui/alias-tips", defer:2
zplug "zdharma-continuum/fast-syntax-highlighting", defer:2
zplug 'zplug/zplug', hook-build:'zplug --self-manage'
# Install plugins if there are plugins that have not been installed eval "$(sheldon source)"
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
zplug load
# Uncomment the following line to use case-sensitive completion. # Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true" # CASE_SENSITIVE="true"
@ -75,7 +63,7 @@
# Would you like to use another custom folder than $ZSH/custom? # Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder # ZSH_CUSTOM=/path/to/new-custom-folder
plugins=(asdf safe-paste docker firewalld fzf golang terraform torrent vagrant sudo lol) plugins=(asdf docker firewalld fzf git gitignore golang safe-paste systemd terraform torrent vagrant lol)
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor) ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)