Skip to content

Instantly share code, notes, and snippets.

@papachan
Last active March 14, 2017 22:29
Show Gist options
  • Save papachan/50dd79b1fd010dc09b7f97dfac534a1b to your computer and use it in GitHub Desktop.
Save papachan/50dd79b1fd010dc09b7f97dfac534a1b to your computer and use it in GitHub Desktop.
#!/usr/bin/zsh
# A simple script to curl a gitignore file to your git init
printf "Which language?\n:"
read in
git init
lang=`echo $in | sed -e 's/\b\(.\)/\u\1/g'`
curl "https://raw.githubusercontent.com/github/gitignore/master/$noo.gitignore" > .gitignore
find .
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment