fast_cd_menu
fast_cd_menu copied to clipboard
a super cd command created by bash script to show cd history in menu.
Fast cd menu
- What's this?
- Installation
- Usage
What's this?
"fast_cd_menu" is a bash script to support command "c" in bash to show cd history as menu.

Installation
(Bash 3.0 or higher is required)
To install or update fast_cd_menu, you can use the install script with curl
curl -o- https://raw.githubusercontent.com/xhawk18/fast_cd_menu/master/install.sh | bash
or wget
wget -qO- https://raw.githubusercontent.com/xhawk18/fast_cd_menu/master/install.sh | bash
The script installs fast_cd_menu in ~/.fast_cd and adds the source line to your profile (~/.bash_profile, ~/.profile, or ~/.bashrc).
source "$HOME/.fast_cd/fast_cd_menu.sh"
Uninstall
To uninstall, run
curl -o- https://raw.githubusercontent.com/xhawk18/fast_cd_menu/master/install.sh | bash -s -- --uninstall
or
wget -qO- https://raw.githubusercontent.com/xhawk18/fast_cd_menu/master/install.sh | bash -s -- --uninstall
Usage
After installed, re-open the bash console and cd to some folders firstly, and then you can try the super command c. For example --
- show a menu of cd history
c
- go to 2nd folder in the cd history
c 2
- go to the folder which name contains string test, where "name" is the folder's name, not full path.
c test