File encoding
This commit is contained in:
parent
92ccc595d0
commit
baee769f08
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue