Reputation: 645
Git at terminal behaving very weirdly.
Here is how terminal responds when I have a git command
git log
Not sure how to fix it.
this is how .bash_profile loks like
"$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
if [ -f /usr/local/etc/bash_completion.d/git-completion.bash ]; then
. /usr/local/etc/bash_completion.d/git-completion.bash
fi
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[00m\]$(git branch &>/dev/null; if [ $? -eq 0 ]; then echo "\[\033[01;33m\]($(git branch | grep ^*|sed s/\*\ //))\[\033[00m\]"; fi)$ '
Upvotes: 0
Views: 2185
Reputation: 7995
Change the git color configuration with the following command:
git config --global color.ui [always|auto|never]
Upvotes: 1