✨〰️ ZI 〰️✨ Nickname a plugin or snippet

❮ ZI ❯ 🧙‍‍♀️ A Swiss Army Knife for Zsh.

Designed to glue everything together. 🔗

https://z.digitalclouds.dev | GitHub | Discussions | Localize

✴️ ZI 🧙‍‍♀️ supports loading a plugin or snippet with a NICK-NAME. Set the nickname through the new id-as'' ice-mod.

For example, one could try to load docker/compose from GitHub binary releases :

✴️ This registers plugin under ID docker/compose. Now the user could want to load a completion from GitHub repository (not the binary release catalog) also called docker/compose. The two IDs, both being docker/compose , will collide. The user can however resolve the conflict via id-as'' ice-mod by loading the completion under a nick-name dc-completion:

✴️ The completion is now seen under ID dc-completion. Issuing zi report dc-completion works, so as other ZI commands:

✴️ This can be also used to nickname snippets.

For example, you can use this to create handlers in place of long urls:

zi delete git-unique will work, zi times will show git-unique instead of the URL, etc.

Originally published at https://dev.to on June 5, 2022.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store