Skip to content

Commit

Permalink
Use "sheldon", instead of "zplug"
Browse files Browse the repository at this point in the history
When I start Terminal.app, I get an error message that "lib/termsupport" could not be loaded.

> [zplug] These repos have failed to load:
> - lib/termsupport

The same error is reported in an Issue of "zplug", which was reported in June 2020, but has not yet been commented on.

- zplug/zplug#550

"zplug" has not been maintained for years. The latest git commit was in February 2020, and there have been no commits for almost two years.
The author says it no longer has the motivation to maintain "zplug" and is developing other CLI tool similar to.

- zplug/zplug#537
- zplug/zplug#579
- https://babarot.me/afx/

At first I thought about switching to that tool, but as I searched the web for alternative tools, "sheldon" seemed better to me.
The loading time seemed fast, and one of the deciding factors was that it could be installed using Homebrew.

- https://www.libhunt.com/r/zplug
- https://github.com/rossmacarthur/zsh-plugin-manager-benchmark#results
- https://formulae.brew.sh/formula/sheldon
- https://github.com/rossmacarthur/sheldon
- https://sheldon.cli.rs/Introduction.html
- https://ktrysmt.github.io/blog/migrate-zinit-to-sheldon/
  • Loading branch information
machupicchubeta committed Mar 5, 2022
1 parent 963bf98 commit 8b15680
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 37 deletions.
33 changes: 0 additions & 33 deletions .zplugrc

This file was deleted.

10 changes: 7 additions & 3 deletions .zshrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
source $HOME/.zplugrc
source $HOME/.zsh/hooks.zsh
: "${XDG_CONFIG_HOME:=$HOME/.config}"
: "${XDG_DATA_HOME:=$HOME/.local/share}"

autoload -U compinit && compinit
if which sheldon > /dev/null; then
export SHELDON_CONFIG_DIR="$XDG_CONFIG_HOME/sheldon"
export SHELDON_DATA_DIR="$XDG_DATA_HOME/sheldon"
eval "$(sheldon source)"
fi

# if (which zprof > /dev/null) ;then
# zprof | less
Expand Down
2 changes: 1 addition & 1 deletion bin/brewfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ brew install z
brew install zsh-completions
brew install zsh-autosuggestions
brew install zsh-syntax-highlighting
brew install zplug
brew install terminal-notifier
brew install source-highlight
brew install luarocks
Expand Down Expand Up @@ -283,6 +282,7 @@ brew install warrensbox/tap/tgswitch
brew install auth0
brew install jless
brew install terraform-lsp
brew install sheldon

# For Ruby
brew install openssl
Expand Down
45 changes: 45 additions & 0 deletions config/sheldon/plugins.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
shell = "zsh"
apply = ["defer"]

[plugins.zsh-defer]
github = "romkatv/zsh-defer"
apply = ["source"]

[templates]
defer = { value = 'zsh-defer source "{{ file }}"', each = true }

[plugins.compinit]
inline = 'autoload -Uz compinit && zsh-defer compinit && compinit'

[plugins.enhancd]
github = "b4b4r07/enhancd"

[plugins.emoji-cli]
github = "b4b4r07/emoji-cli"

[plugins.ohmyzsh-lib]
github = "ohmyzsh/ohmyzsh"
dir = "lib"
use = ["{clipboard,completion,correction,directories,functions,git,grep,history,key-bindings,misc,spectrum,termsupport,theme-and-appearance}.zsh"]
apply = ["source"]

[plugins.ohmyzsh-plugins]
github = "ohmyzsh/ohmyzsh"
dir = "plugins"
use = ["{bundler/bundler,git/git,history/history,osx/osx,terraform/terraform,z/z}.plugin.zsh"]
apply = ["source"]

[plugins.ohmyzsh-plugin-docker]
github = "ohmyzsh/ohmyzsh"
dir = "plugins"
use = ["docker/_docker"]

[plugins.ohmyzsh-plugin-redis-cli]
github = "ohmyzsh/ohmyzsh"
dir = "plugins"
use = ["redis-cli/_redis-cli"]

[plugins.dotfiles]
local = "~/.zsh"
use = ["*.zsh"]
apply = ["source"]

0 comments on commit 8b15680

Please sign in to comment.