Skip to content

Instantly share code, notes, and snippets.

@WritingPanda
Last active January 3, 2020 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WritingPanda/b15ebb6bdab8650372a2836ccc813596 to your computer and use it in GitHub Desktop.
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
#!/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