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 | 60a71e503da5a93d6fc362a096ce12ff58124653 (patch) | |
| tree | dbd8c9caac4e10358846d1a2504495c0865af599 /.bash-powerline.sh | |
| parent | 42c709e21c6e7e4a2276128eee9743a43a174998 (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}" } |
