Created
September 18, 2018 18:34
-
-
Save jonathantneal/f7cb7a49a914f3963ca100fe34ae44f2 to your computer and use it in GitHub Desktop.
Goto GitHub Project: No more cd’ing between multiple user/project directories
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
# USAGE: `goto some-project-dirname` | |
goto () { | |
# where `~/GitHub` is the directory where you put all of your projects | |
DIR=$(find ~/GitHub -type d -name "node_modules" -prune -o -type d -name "$1" -print) | |
cd -P -- "$DIR" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment