Created
November 14, 2014 12:11
-
-
Save helhum/2815df7ce2c8813f0e5d to your computer and use it in GitHub Desktop.
TYPO3 Surf shortcut command
This file contains hidden or 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
#!/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