-
-
Save jay16/b814ce670dee0398ca09 to your computer and use it in GitHub Desktop.
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 | |
if [[ $@ != "" ]]; then | |
if [[ $2 != "" ]]; then | |
curl http://www.gitignore.io/api/$1 -o $2 | |
else | |
curl http://www.gitignore.io/api/$1 | |
fi | |
else | |
echo 创建gitignore文件 | |
echo | |
echo Usage: mkgitignore lang | |
echo Example: mkgitignore vim,python | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment