Permalink
Browse files

prompt fixes

  • Loading branch information...
1 parent 39f38e6 commit ff77bcde33769af75281aa1f8c5d99cf1fd16610 @gabesoft committed Jul 8, 2011
Showing with 3 additions and 9 deletions.
  1. +3 −9 .bashrc
View
@@ -172,11 +172,11 @@ function _git_prompt() {
branch="(`git describe --all --contains --abbrev=4 HEAD 2> /dev/null ||
echo HEAD`)"
fi
- echo -n '\['"$branch_color"'\]'"$branch"
+ echo -n '\['"$COLOR_CYAN"'\](''\['"$branch_color"'\]'"$branch"'\['"$COLOR_CYAN"'\])'
fi
}
function _prompt_command() {
- PS1="\[${COLOR_BROWN}\]\w\[${COLOR_CYAN}\] (`_git_prompt`\[${COLOR_CYAN}\])\[${COLOR_RED}\]> \[${COLOR_NC}\]"
+ PS1="\[${COLOR_BROWN}\]\w `_git_prompt`\[${COLOR_RED}\]> \[${COLOR_NC}\]"
}
PROMPT_COMMAND=_prompt_command
@@ -196,14 +196,8 @@ PROMPT_COMMAND=_prompt_command
#export CLICOLOR=1
#export TERM=xterm-color
-# shell colors
-#if [[ $platform == 'linux' ]]; then
-#export LS_COLORS='di=0;36:fi=0;37:ln=0;35:pi=5:so=5:bd=5:cd=5:or=31:mi=1:ex=0;31:*.rb=90'
-#elif [[ $platform == 'mac' ]]; then
-#export LSCOLORS=Gxfxcxdxbxegedabagacad
-#fi
-
[[ "$use_color_gnu" == 'true' ]] && eval $(dircolors $HOME/.dir_colors)
+[[ "$use_color_gnu" == 'true' ]] && export LS_COLORS='di=0;36:fi=0;37:ln=0;35:pi=5:so=5:bd=5:cd=5:or=31:mi=1:ex=0;31:*.rb=90'
[[ "$use_color_bsd" == 'true' ]] && export CLICOLOR=1
[[ "$use_color_bsd" == 'true' ]] && export LSCOLORS=Gxfxcxdxbxegedabagacad

0 comments on commit ff77bcd

Please sign in to comment.