ack-grep should not look in PhpStorm .idea files.
Disable line ending normalization in git.
Include ~/.phpbrew/bashrc into ~/.bashrc.
Special git diff mode for php
Replace filemode with fileMode in .gitconfig
Make sure .gitattributes is included in .gitconfig via attributesfile
Set autocrlf = false in .gitconfig
Add .bash_profile so it also works in non-login shells. Or was it the other way round?