zplug -> zgenom

Sadly it looks like zplug is no longer maintained.
This commit is contained in:
James Patrick 2024-05-07 01:43:59 -04:00
parent 4521f94279
commit b6ab60e92d
4 changed files with 44 additions and 33 deletions

View File

@ -27,7 +27,7 @@ zsh
├── transient δ
├── zlogin
├── zlogout
├── zplug
├── zgenom
├── zprofile
├── zshenv
└── zshrc
@ -37,8 +37,8 @@ zsh
* `host` :: Loaded Automatically. Conditionally loads by based on `$HOST` value.
* `os` :: Loaded Automatically. Conditionally loads by based on `$OSTYPE` value.
* `makefile` :: Install/Update/Remove makefile.
* `modules` :: Local modules loaded by [zplug](https://github.com/zplug/zplug).
* `modules` :: Local modules loaded by zgenom
* `transient` :: Files that are required for zsh (eg history), that are not to
be versioned.
* `zlogin`/`zlogout`/`zprofile`/etc :: The default shell resource files. See [here](https://shreevatsa.wordpress.com/2008/03/30/zshbash-startup-files-loading-order-bashrc-zshrc-etc/) for more infomation on load order.
* `zplug` :: How to load modules.
* `zgenom` :: How to load modules.

40
zsh/zgenom Normal file
View File

@ -0,0 +1,40 @@
#!/usr/bin/env zsh
# vim: syn=zsh
source "${HOME}/.zgenom/zgenom.zsh"
# Check for plugin and zgenom updates every 7 days
# This does not increase the startup time.
zgenom autoupdate
if ! zgenom saved; then
zgenom load hlissner/zsh-autopair
zgenom load unixorn/fzf-zsh-plugin
zgenom load zsh-users/zsh-autosuggestions
zgenom load zsh-users/zsh-completions
zgenom load zdharma-continuum/fast-syntax-highlighting
if [ -n "$SSH_CONNECTION" ] ; then
zgenom load "${ZDIR}/modules/prompt/"
else
zgenom load "spaceship-prompt/spaceship-prompt"
fi
# load various modules
zgenom bin "${ZDIR}/modules/"
zgenom loadall <<EOPLUGINS
"${ZDIR}/modules/alias/"
"${ZDIR}/modules/complete/"
"${ZDIR}/modules/directory/"
"${ZDIR}/modules/history/"
"${ZDIR}/modules/keybinds/"
"${ZDIR}/modules/tmux/"
EOPLUGINS
# save all to init script
zgenom save
# Compile your zsh files
zgenom compile "$HOME/.zshrc"
fi

View File

@ -1,29 +0,0 @@
#!/usr/bin/env zsh
# vim: syn=zsh
source ${ZPLUG_HOME}/init.zsh
zplug "${ZDIR}/modules/bin/", from:local, as:command, use:"*"
zplug "${ZDIR}/modules/alias/", from:local, as:plugin
zplug "${ZDIR}/modules/complete/", from:local, as:plugin, defer:2
zplug "${ZDIR}/modules/directory/", from:local, as:plugin
zplug "${ZDIR}/modules/history/", from:local, as:plugin
zplug "${ZDIR}/modules/keybinds/", from:local, as:plugin
zplug "hlissner/zsh-autopair", as:plugin, defer:2
zplug "junegunn/fzf", use:"shell/*.zsh", defer:2
zplug "mafredri/zsh-async", as:plugin, defer:2
zplug "zdharma-continuum/fast-syntax-highlighting", as:plugin, defer:2
zplug "zsh-users/zsh-autosuggestions", as:plugin, defer:2
zplug "zsh-users/zsh-completions", as:plugin
zplug "zsh-users/zsh-history-substring-search", as:plugin, defer:2
if [ -n "$SSH_CONNECTION" ] ; then
zplug "${ZDIR}/modules/prompt/", from:local, use:uncommon.zsh, as:theme
else
zplug "spaceship-prompt/spaceship-prompt", use:spaceship.zsh, from:github, as:theme
fi
env_loader zplug
zplug load

View File

@ -2,6 +2,6 @@
# vim: syn=zsh
source "${ZDIR}/modules/tmux/init.zsh"
source $ZDIR/zplug
source "${ZDIR}/zgenom"
env_loader zshrc