zsh-pins
March 6, 2023 ยท View on GitHub
ZSH plugin for pinning directories. Like a CLI folder bookmark manager (with tab completion!)
Usage
| 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 |
Demo

Tab Completion

Installation
Antigen
-
Add the following to your
.zshrc:antigen bundle mehalter/zsh-pins -
Start a new terminal session.
Oh My Zsh
-
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.
Manual (Git Clone)
-
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.