Skip to content

Instantly share code, notes, and snippets.

@RogerCreasy
Created February 22, 2018 13:01
Show Gist options
  • Save RogerCreasy/bc5f51d92b630fa9a868b6390bdd84e5 to your computer and use it in GitHub Desktop.
Save RogerCreasy/bc5f51d92b630fa9a868b6390bdd84e5 to your computer and use it in GitHub Desktop.
snippet for .alias file - allows cli easy access to projects
project() {
if [ $# -eq 0 ]; then
echo "Please supply a project direcory or '/' for the root dir"
elif [ $1 = '/' ]; then
cd /media/windows-data/projects
else
cd /media/windows-data/projects/$1
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment