Skip to content

Instantly share code, notes, and snippets.

@agent-simon-s
Last active November 3, 2017 09:22
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 agent-simon-s/be9413c45737f54b6ee19f9dce713ec3 to your computer and use it in GitHub Desktop.
Save agent-simon-s/be9413c45737f54b6ee19f9dce713ec3 to your computer and use it in GitHub Desktop.
Sh: project function template
function myFn() {
cd /Users/Shared/Workspace/; pwd;
if [[ "$@" == "-g" ]]
then
echo "Checking Git Status"; git status;
else
#echo "NO status"
fi
if [[ "$@" == "-b" ]]
then
echo "Buiding";grunt serve;
else
#echo "NO build"
fi
if [[ "$@" == "-o" ]]
then
echo "Open in finder";open .
else
#echo "NO open"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment