From b6ab60e92d28231fb14f3d4493b861e9ba6b4a43 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Tue, 7 May 2024 01:43:59 -0400 Subject: [PATCH] zplug -> zgenom Sadly it looks like zplug is no longer maintained. --- zsh/README.md | 6 +++--- zsh/zgenom | 40 ++++++++++++++++++++++++++++++++++++++++ zsh/zplug | 29 ----------------------------- zsh/zshrc | 2 +- 4 files changed, 44 insertions(+), 33 deletions(-) create mode 100644 zsh/zgenom delete mode 100755 zsh/zplug diff --git a/zsh/README.md b/zsh/README.md index f5231fc..6889bc8 100644 --- a/zsh/README.md +++ b/zsh/README.md @@ -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. diff --git a/zsh/zgenom b/zsh/zgenom new file mode 100644 index 0000000..4e4fd72 --- /dev/null +++ b/zsh/zgenom @@ -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 <