Skip to content

Instantly share code, notes, and snippets.

@helhum
Created November 14, 2014 12:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helhum/2815df7ce2c8813f0e5d to your computer and use it in GitHub Desktop.
Save helhum/2815df7ce2c8813f0e5d to your computer and use it in GitHub Desktop.
TYPO3 Surf shortcut command
#!/bin/bash
function surf() {
if ([ "$#" == "1" ] && [ "$1" == "help" ]) || [ "$#" == "0" ]
then
./flow help surf
return $?
fi
if [ "$1" == "help" ]
then
./flow help surf:$2
return $?
fi
command=$1
shift
./flow surf:$command $@
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment