File encoding

This commit is contained in:
Bob Mottram 2018-03-03 19:13:52 +00:00
parent 92ccc595d0
commit baee769f08
1 changed files with 10 additions and 10 deletions

View File

@ -25,16 +25,16 @@ __powerline() {
# Unicode symbols
if [ -z "${POWERLINE_FONT+x}" ]; then
readonly GIT_BRANCH_SYMBOL=''
readonly GIT_BRANCH_SYMBOL=''
else
readonly GIT_BRANCH_SYMBOL=''
readonly GIT_BRANCH_SYMBOL=''
fi
readonly GIT_BRANCH_CHANGED_SYMBOL='Δ'
readonly GIT_NEED_PUSH_SYMBOL=''
readonly GIT_NEED_PULL_SYMBOL=''
readonly GIT_BRANCH_CHANGED_SYMBOL=''
readonly GIT_NEED_PUSH_SYMBOL=''
readonly GIT_NEED_PULL_SYMBOL=''
# Powerline symbols
readonly BLOCK_START=''
readonly BLOCK_START=''
# ANSI Colours
readonly BLACK=0
@ -160,7 +160,7 @@ __powerline() {
# shellcheck disable=SC2181
if [ $? != 0 ]; then
branch="$($git_eng describe --tags --always 2>/dev/null)"
ref_symbol=''
ref_symbol=''
else
ref_symbol=$GIT_BRANCH_SYMBOL
fi
@ -299,17 +299,17 @@ __powerline() {
__status_block() {
local text
if [ "$exit_code" != 0 ]; then
__prompt_block $BLACK $RED ''
__prompt_block $BLACK $RED ''
text+=$__block_text
fi
if [ "$(id -u "$USER")" == 0 ]; then
__prompt_block $BLACK $YELLOW ''
__prompt_block $BLACK $YELLOW ''
text+=$__block_text
fi
if [ "$(jobs -l | wc -l)" != 0 ]; then
__prompt_block $BLACK $CYAN ''
__prompt_block $BLACK $CYAN ''
text+=$__block_text
fi