Skip to content

Latest commit

 

History

History
74 lines (47 loc) · 1.42 KB

File metadata and controls

74 lines (47 loc) · 1.42 KB

Fast cd menu

What's this?

"fast_cd_menu" is a bash script to support command "c" in bash to show cd history as menu.

screen snapshot

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