Home

Awesome

icd

Powerful cd command with fuzzy-search tool.

It's similar with enhancd, but faster and more lightweight.

Requirements

First, you need to install fzf for fuzzy searching.

Second, you can install ripgrep. This is optional, but recommended. If don't have ripgrep, you can set $ICD_GREP to grep like this:

export ICD_GREP=grep

icd will fall back to use grep command instead of rg.

Install

Oh My Zsh

Run this command:

git clone https://github.com/g-plane/icd.git $ZSH_CUSTOM/plugins

Then, update your .zshrc like this:

plugins=(
  # ... your other plugins
+ icd
)

zinit

Update your .zshrc with following line:

zinit light g-plane/icd

zplug

Update your .zshrc with following line:

zplug "g-plane/icd"

Fish

Copy icd.fish to ~/.config/fish/functions directory.

Then, add alias to your ~/.config/fish/config/config.fish:

alias cd icd

License

MIT License

2020-present (c) Pig Fang