Skip to content

Commit

Permalink
fixed bash prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumeru Chatterjee committed Sep 4, 2015
1 parent 77b718d commit 5c88ac6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .bash_prompt
Expand Up @@ -41,9 +41,8 @@ function parse_git_branch() {
git rev-parse --short HEAD 2> /dev/null || \
echo '(unknown)')";

[ -n "${s}" ] && s=" [${s}]";

echo -e "${1}${branchName}${blue}${s}";
echo -e "[${1}${branchName}${blue}${s}]";
else
return;
fi;
Expand Down

0 comments on commit 5c88ac6

Please sign in to comment.