Skip to content

daanvdk/zsh-autosuggest-abbr-history

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

ZSH Autosuggest Abbr History

This plugin defines a strategy called abbr_history for zsh-autosuggestions that works similar to the standard history strategy but takes zsh-abbr into account.

Example

Lets say you have the following abbr setup:

abbr dc="docker compose"

And you typed dc ps which expanded to docker compose ps. If you now type type dc again this will not match the docker compose ps entry in your history and thus the standard history strategy will not suggest anything.

With the strategy of this plugin instead it will suggest dc ps and on suggestion accept expand that to docker compose ps for you.

Sidenotes

At the moment zsh-autosuggestions only supports appending a suggestion. Since this plugin has to expand the abbreviation this is not enough. So at the moment this plugin only works with my fork of zsh-autosuggestions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages