diff options
| author | Marc Vertes <mvertes@free.fr> | 2020-10-04 11:19:09 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2020-10-04 11:19:09 +0200 |
| commit | 3f960980b1a6b71394c94a018d9953bcf9adb60c (patch) | |
| tree | cc19aef3928f33d938f1446b5c40f957b7d54bea /.bash-powerline.sh | |
| parent | 0d0b8b33a49f1775e8a2bd9b9bdbeb6fc63cc53b (diff) | |
update
Diffstat (limited to '.bash-powerline.sh')
| -rw-r--r-- | .bash-powerline.sh | 6 |
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}" } |
