Last active
January 3, 2020 21:19
-
-
Save WritingPanda/b15ebb6bdab8650372a2836ccc813596 to your computer and use it in GitHub Desktop.
Lists all of my projects in the projects directory and cds to the one I want
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
#!/bin/bash | |
function projects() { | |
# or wherever your project directory is located | |
DIRS=(/mnt/f/Projects/*) | |
select dir in "${DIRS[@]}" | |
do | |
cd "${dir}" | |
break | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment