Last active
October 10, 2020 05:17
-
-
Save okken/b94115afe5ca004dcdf2abb89adff627 to your computer and use it in GitHub Desktop.
mcd: menu driven cd (intended for .bashrc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mcd: menu driven cd (intended for .bashrc) | |
function mcd { | |
PS3="Which directory: " | |
select d in '/some/common/path/i/use/'\ | |
'/another/common/path/'\ | |
'/and/so/forth/' | |
do | |
cd $d | |
break | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment