zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
2.95k stars 126 forks source link

Documentation – share a useful trick with named directories. #390

Closed psprint closed 1 year ago

psprint commented 1 year ago

Alias all plugins with ~plgname to point to their directory.

Description

Normally one issues zi cd fzf<tab>, however I'm starting to like ~labels, after coming up with them after last argue about that should be separate plugin / ~ZIABC labels for Zinit system dirs.

Motivation and Context

To type as low as possible.

Related Issue(s)

381

Usage examples

% pushd ~fzf
/home/q/.local/share/zinit/plugins/junegunn---fzf ~
% ls
fzf

Types of changes

Checklist:

psprint commented 1 year ago

What about merging this PR? It's only a documentation extension (README.md) and it shares an useful technique to quickly jump to plugin dirs.

vladdoster commented 1 year ago

@psprint,

The branch needs to be rebased.

psprint commented 1 year ago

I created a separate branch and pull request (#464).