Skip to content

a super cd command created by bash script to show cd history in menu.

Notifications You must be signed in to change notification settings

xhawk18/fast_cd_menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a super cd command created by bash script to show cd history in menu.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages