ZSH plugin for pinning directories. Like a CLI folder bookmark manager (with tab completion!)
Command | Description |
---|---|
pl |
list all pins |
pg <name> |
go to pin and list contents |
pa <name> |
add pin to current directory with name |
pd <name> |
delete pin with name |
pe <name> |
edit pin with name to point to current directory |
-
Add the following to your
.zshrc
:antigen bundle mehalter/zsh-pins
-
Start a new terminal session.
-
Clone this repository into
$ZSH_CUSTOM/plugins
(by default~/.oh-my-zsh/custom/plugins
)git clone https://github.com/mehalter/zsh-pins ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-pins
-
Add the plugin to the list of plugins for Oh My Zsh to load (inside
~/.zshrc
):plugins=( # other plugins... zsh-pins )
-
Start a new terminal session.
-
Clone this repository somewhere on your machine. This guide will assume
~/.zsh/zsh-autosuggestions
.git clone https://github.com/mehalter/zsh-pins ~/.zsh/zsh-pins
-
Add the following to your
.zshrc
:source ~/.zsh/zsh-pins/zsh-pins.plugin.zsh fpath+= ~/.zsh/zsh-pins
-
Start a new terminal session.