Small zsh helpers for use with antidote.
This plugin adds its functions/ directory to fpath. Each file in
functions/ is intended to be used as a zsh autoload.
Add this repository to your antidote plugins list in .zsh_plugins.txt:
getantidote/contribThen bundle with antidote in the usual way:
antidote bundle <~/.zsh_plugins.txt >~/.zsh_plugins.zsh
source ~/.zsh_plugins.zshThe function bindkey-hss adds common key bindings.
To use it with antidote add this to your .zsh_plugins.txt:
zsh-users/zsh-history-substring-search post:'autoload -Uz bindkey-hss && bindkey-hss'
It binds:
Ctrl-PandCtrl-Nin emacs modekandjin vi command mode- terminal up/down keys in
main,emacs, andviinskeymaps
The function init-zsh-patina builds and activates zsh-patina.
To use it with antidote add this to your .zsh_plugins.txt:
michel-kraemer/zsh-patina kind:clone post:'autoload -Uz init-zsh-patina && init-zsh-patina'
It locates the plugin with antidote path, checks whether the compiled binary
matches the checked-out git SHA, and sources the activation script.
By default, init-zsh-patina will not build during shell startup. If the binary
is missing or stale, it prints a command to run. Pass --with=build or
--with build to build when needed before activation, or --with=rebuild /
--with rebuild to force a rebuild. Requires cargo when a build or rebuild
is needed.