Super-simple script to interactively navigate your visited and added directories using peco
command in ZSH via a keyboard shortcut (default: CTRL + f).
The list of these aforementioned directories is obtained from the z
command.
- Install the dependencies
- Clone this repo and acquire the absolute path of
peco-z.sh
- Edit your
.zshrc
to use the script with a keyboard shortcut
I personally chose to put the peco-z.sh
in the folder where I have all my dot files. Alternatively, you may place it in Home.
After the preferred placement, acquire its absolute path.
Copy and paste the following and you're done:
bindkey -s '^F' 'source /Users/vidhupopli/.config/scripts/peco-z.sh^M
Start a new shell to begin using with Ctrl + f.