Trying a different zsh plugin system, «zplug». It is super simple and flexible, and I am testing out «liquidprompt» prompt with it (morphy goodness). So far I like this combo a lot. 🤩
# Source zplugsource~/.zplug/init.zsh# Make sure to use double quoteszplug"zsh-users/zsh-history-substring-search"# Grab binaries from GitHub Releases# and rename with the "rename-to:" tagzplug"junegunn/fzf-bin", \
from:gh-r, \
as:command, \
rename-to:fzf, \
use:"*darwin*amd64*"# Supports oh-my-zsh plugins and the likezplug"plugins/git",from:oh-my-zsh# Liquidpromptzplug"nojhan/liquidprompt"# Load if "if" tag returns truezplug"lib/clipboard",from:oh-my-zsh,if:"[[ $OSTYPE == *darwin* ]]"# Group dependencies# Load "emoji-cli" if "jq" is installed in this examplezplug"stedolan/jq", \
from:gh-r, \
as:command, \
rename-to:jqzplug"b4b4r07/emoji-cli", \
on:"stedolan/jq"# Note: To specify the order in which packages should be loaded, use the defer# tag described in the next section# Set the priority when loading# e.g., zsh-syntax-highlighting must be loaded# after executing compinit command and sourcing other plugins# (If the defer tag is given 2 or above, run after compinit command)zplug"zsh-users/zsh-syntax-highlighting",defer:2# Install plugins if there are plugins that have not been installedif!zplugcheck--verbose;thenprintf"Install? [y/N]: "ifread-q;thenecho;zpluginstallfifi# Then, source plugins and add commands to $PATHzplugload--verbose# Self managezplug'zplug/zplug',hook-build:'zplug --self-manage'
Except for liquidprompt, those are just copy-pasted from the docs. Then restart your terminal and answer the install prompts to install the plugins. Sweet zsh goodness. Thanks to Masaki Ishiyama for coding up a great system https://twitter.com/b4b4r07.
RC Logr 20200706 060711 - Trying a different zsh plugin …Rick CogleyBack to HomeTweet Link