Created
May 26, 2014 08:23
-
-
Save kaosf/b20a937ce4611c7bfa02 to your computer and use it in GitHub Desktop.
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
addtogitignore () { | |
if [ $# -lt 1 ] | |
then | |
return 1 | |
fi | |
local PARAMS=$(echo $@ | sed 's/ /,/g') | |
curl www.gitignore.io/api/$PARAMS >> .gitignore 2> /dev/null | |
echo "Executed \"curl www.gitignore.io/api/$PARAMS >> .gitignore\"" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment