Created
July 31, 2024 01:32
-
-
Save y16ra/87923df8dd791822dd93615418835a1b to your computer and use it in GitHub Desktop.
enable cdr command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ -n $(echo ${^fpath}/chpwd_recent_dirs(N)) && -n $(echo ${^fpath}/cdr(N)) ]]; then | |
autoload -Uz chpwd_recent_dirs cdr add-zsh-hook | |
add-zsh-hook chpwd chpwd_recent_dirs | |
zstyle ':completion:*' recent-dirs-insert both | |
zstyle ':chpwd:*' recent-dirs-default true | |
zstyle ':chpwd:*' recent-dirs-max 1000 | |
zstyle ':chpwd:*' recent-dirs-file "$HOME/.cache/chpwd-recent-dirs" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ensure the history file exists and has some initial content