summaryrefslogtreecommitdiff
path: root/.bash-powerline.sh
diff options
context:
space:
mode:
Diffstat (limited to '.bash-powerline.sh')
-rw-r--r--.bash-powerline.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/.bash-powerline.sh b/.bash-powerline.sh
index 8121f92..232d7a5 100644
--- a/.bash-powerline.sh
+++ b/.bash-powerline.sh
@@ -12,7 +12,8 @@ __powerline() {
readonly COLOR_SUCCESS='\[\033[0;34m\]' # blue
readonly COLOR_FAILURE='\[\033[0;31m\]' # red
- readonly SYMBOL_GIT_BRANCH='⑂'
+ #readonly SYMBOL_GIT_BRANCH='⑂'
+ readonly SYMBOL_GIT_BRANCH='→'
readonly SYMBOL_GIT_MODIFIED='*'
readonly SYMBOL_GIT_PUSH='↑'
readonly SYMBOL_GIT_PULL='↓'
@@ -66,7 +67,7 @@ __powerline() {
done < <($git_eng status --porcelain --branch 2>/dev/null) # note the space between the two <
# print the git branch segment without a trailing newline
- printf " $ref$marks"
+ printf "$ref$marks"
}
ps1() {
@@ -98,6 +99,7 @@ __powerline() {
fi
}
+ PROMPT_DIRTRIM=2
PROMPT_COMMAND="ps1${PROMPT_COMMAND:+; $PROMPT_COMMAND}"
}