Skip to content

Commit d8dbb71

Browse files
committed
Fix indentation.
The indentation was off at some places. This commit regularises it.
1 parent 167b1a7 commit d8dbb71

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

git_term

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# PS1 magic
44
#
5-
# Mostly copied from YUVAL KOGMAN version, added my own __git_ps1 stuff
5+
# Mostly copied from YUVAL KOGMAN's version, added my own __git_ps1 stuff
66
# Original: http://gist.github.com/621452
77
#
88
# See video demo of this at http://vimeo.com/15789794
@@ -54,17 +54,17 @@ _update_prompt () {
5454
local u;
5555
local p;
5656
if [ "$UID" = "0" ]; then
57-
u="$e_bred\u$e_normal";
57+
u="$e_bred\u$e_normal";
5858
p="$e_bred#$e_normal";
5959
else
60-
u="$e_purple\u$e_normal";
60+
u="$e_purple\u$e_normal";
6161
p="\$";
6262
fi
6363

6464
## Color git status if any
6565
branch=`__git_ps1 "(%s)"`
6666
if [ -n "$branch" ] ; then
67-
if [ -z "$_dumb_prompt" ]; then
67+
if [ -z "$_dumb_prompt" ]; then
6868
## Assumes that untracked files are always listed after modified ones
6969
## True for all git versions I could find
7070
git status --porcelain | perl -ne 'exit(1) if /^ /; exit(2) if /^[?]/'
@@ -74,12 +74,12 @@ if [ -z "$_dumb_prompt" ]; then
7474
"2" ) branch=" $e_byellow$branch$e_normal" ;;
7575
"130" ) branch=" $e_white$branch$e_normal" ; _dumb_prompt=1 ;;
7676
esac
77-
else
78-
branch=" $e_white$branch$e_normal"
77+
else
78+
branch=" $e_white$branch$e_normal"
7979
fi
80-
fi
81-
full_prompt="$ex$_prompt $u$branch $p";
82-
export PS1="\[\e]0;\u@\h:\w\\a\]$full_prompt ";
80+
fi
81+
full_prompt="$ex$_prompt $u$branch $p";
82+
export PS1="\[\e]0;\u@\h:\w\\a\]$full_prompt ";
8383
}
8484

8585
dumb_prompt () {
@@ -91,6 +91,6 @@ smart_prompt () {
9191
}
9292

9393
if [ -n "$PS1" ] ; then
94-
PROMPT_COMMAND='_update_prompt'
94+
PROMPT_COMMAND='_update_prompt'
9595
export PROMPT_COMMAND
9696
fi

0 commit comments

Comments
 (0)