Created
October 12, 2020 11:37
-
-
Save viertelb/17a2afc777d4008de69b5d8abac94d85 to your computer and use it in GitHub Desktop.
This file contains 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