I was trying to set up some git aliases by adding these lines to my ~/.gitconfig
file:
[alias]
st = status
ci = commit
br = branch
I had the same problem too, and this was a badly formatted .bash_profile line.
When I installed WP_CLI, it added the following line to my .bash_profile
export PATH=/root/.wp-cli/bin:$PATH
I had to make a slight change for it. I'm using CentOs for that matter.
export PATH=$PATH:/root/.wp-cli/bin
This fixed my problem.