Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

contrib

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.

Installation

Add this repository to your antidote plugins list in .zsh_plugins.txt:

getantidote/contrib

Then bundle with antidote in the usual way:

antidote bundle <~/.zsh_plugins.txt >~/.zsh_plugins.zsh
source ~/.zsh_plugins.zsh

Functions

The 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-P and Ctrl-N in emacs mode
  • k and j in vi command mode
  • terminal up/down keys in main, emacs, and viins keymaps

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.

About

A set of helpful scripts to enhance antidote

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages