Created
February 22, 2018 13:01
-
-
Save RogerCreasy/bc5f51d92b630fa9a868b6390bdd84e5 to your computer and use it in GitHub Desktop.
snippet for .alias file - allows cli easy access to projects
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
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