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

View File

@ -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
View File

@ -1,28 +1,16 @@
[ ! -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_CACHE_DIR="$ZSH/cache"
source ~/.zplug/init.zsh
zplug "zsh-users/zsh-autosuggestions", defer:2
zplug "zsh-users/zsh-history-substring-search", defer:2
zplug "plugins/git", from:oh-my-zsh, defer:2
zplug "plugins/gitignore", from:oh-my-zsh, defer:2
zplug "plugins/systemd", from:oh-my-zsh, defer:2
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'
# necessary to include "/usr/share/zsh/"$(zsh --version| cut -d ' ' -f2)/functions"
# due to a breakage on fedora zsh version 5.8.1 (zsh.x86_64 5.8.1-1.fc35 @updates)
fpath=(
~/.local/share/zsh/site-functions
/usr/share/zsh/"$(zsh --version| cut -d ' ' -f2)/functions"
$fpath
)
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
zplug load
eval "$(sheldon source)"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
@ -75,7 +63,7 @@
# Would you like to use another custom folder than $ZSH/custom?
# 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
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)