gitignore and a snippet for function in shell

I added the gitignore file and a snippet for function in shell scripting.
maybe you could add new line like:
```
*/tags
```
to ignore `tags` file generated by `helptags`