https://github.com/willghatch/zsh-cdr
Easy setup of cdr for zsh.
https://github.com/willghatch/zsh-cdr
Last synced: 7 months ago
JSON representation
Easy setup of cdr for zsh.
- Host: GitHub
- URL: https://github.com/willghatch/zsh-cdr
- Owner: willghatch
- Created: 2015-09-10T16:10:09.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-10T17:12:14.000Z (about 10 years ago)
- Last Synced: 2025-04-06T16:49:11.789Z (8 months ago)
- Language: Shell
- Size: 121 KB
- Stars: 17
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-zsh-plugins - cdr - Easy setup of `cdr` for ZSH. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - cdr - Easy setup of `cdr` for ZSH. (Plugins / ZSH on Windows)
- awesome-zsh-plugins - cdr - Easy setup of cdr for ZSH. (Plugins / Zinit (née zplugin))
README
Install
-------
Use [zgen](https://github.com/tarjoilija/zgen) or antigen. Here is how to do it with zgen:
zgen load willghatch/zsh-cdr
# be sure to load zaw AFTER this, if you use zaw
#zgen load zsh-users/zaw
Alternatively, just source the .zsh file. But seriously, use zgen.
What is this?
-------------
`cdr` is a zsh command and some hook scaffolding to let you switch to recently used directories.
It is particularly useful with its [zaw](https://github.com/zsh-users/zaw) plugin, letting you
do awesome filtering on your list of recent directories.
I did not make cdr -- it's shipped with zsh. But you have to find out about it and configure it.
This simplifies that. It sets it all up, hassle free, so you can simply turn it on with one
`zgen load` line in your zshrc.
Options?
--------
You can set `ZSH_CDR_DIR` to your liking before loading this plugin, and it will be respected.
Otherwise it will go in `$XDG_CACHE_HOME`. If you want to configure more than that... just
look in the source of this plugin or do a web search for how to set up cdr and have at it.
This plugin is just to have the easiest possible setup.
Note
----
Be sure to load this plugin before loading [zaw](https://github.com/zsh-users/zaw), because there
is a zaw source for cdr that is only loaded if cdr already is.
License
-------
Same license as zsh.