Bug#724667: RFP: bd -- Quickly go back to a specific parent directory
Package: wnpp
Severity: wishlist
* Package name : bd
Version : 1.0
Upstream Author : Vigneshwaran Raveendran <vigneshwaran2007@gmail.com>
* URL : https://github.com/vigneshwaranr/bd
* License : MIT
Programming Lang: sh
Description : Quickly go back to a specific parent directory
Quickly go back to a specific parent directory in linux instead of typing "cd ../../.." redundantly.
If you are in this path /home/user/project/src/org/main/site/utils/file/reader/whatever and you want to go to site directory quickly, then just type: bd site
In fact, You can simply type bd <starting few letters> like bd s or bd si
If there are more than one directories with same name up in the hierarchy, bd will take you to the closest. (Not considering the immediate parent.)
Using bd within backticks (`bd <letter(s)>`) prints out the path without changing the current directory.
You can take advantage of that by combining `bd <letter(s)>` with other commands such as ls, ln, echo, zip, tar etc..
Reply to: