File encoding
This commit is contained in:
parent
92ccc595d0
commit
baee769f08
|
@ -25,16 +25,16 @@ __powerline() {
|
||||||
|
|
||||||
# Unicode symbols
|
# Unicode symbols
|
||||||
if [ -z "${POWERLINE_FONT+x}" ]; then
|
if [ -z "${POWERLINE_FONT+x}" ]; then
|
||||||
readonly GIT_BRANCH_SYMBOL='⑂'
|
readonly GIT_BRANCH_SYMBOL=''
|
||||||
else
|
else
|
||||||
readonly GIT_BRANCH_SYMBOL=''
|
readonly GIT_BRANCH_SYMBOL=''
|
||||||
fi
|
fi
|
||||||
readonly GIT_BRANCH_CHANGED_SYMBOL='Δ'
|
readonly GIT_BRANCH_CHANGED_SYMBOL=''
|
||||||
readonly GIT_NEED_PUSH_SYMBOL='↑'
|
readonly GIT_NEED_PUSH_SYMBOL=''
|
||||||
readonly GIT_NEED_PULL_SYMBOL='↓'
|
readonly GIT_NEED_PULL_SYMBOL=''
|
||||||
|
|
||||||
# Powerline symbols
|
# Powerline symbols
|
||||||
readonly BLOCK_START=''
|
readonly BLOCK_START=''
|
||||||
|
|
||||||
# ANSI Colours
|
# ANSI Colours
|
||||||
readonly BLACK=0
|
readonly BLACK=0
|
||||||
|
@ -160,7 +160,7 @@ __powerline() {
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
branch="$($git_eng describe --tags --always 2>/dev/null)"
|
branch="$($git_eng describe --tags --always 2>/dev/null)"
|
||||||
ref_symbol='➦'
|
ref_symbol=''
|
||||||
else
|
else
|
||||||
ref_symbol=$GIT_BRANCH_SYMBOL
|
ref_symbol=$GIT_BRANCH_SYMBOL
|
||||||
fi
|
fi
|
||||||
|
@ -299,17 +299,17 @@ __powerline() {
|
||||||
__status_block() {
|
__status_block() {
|
||||||
local text
|
local text
|
||||||
if [ "$exit_code" != 0 ]; then
|
if [ "$exit_code" != 0 ]; then
|
||||||
__prompt_block $BLACK $RED '✘'
|
__prompt_block $BLACK $RED ''
|
||||||
text+=$__block_text
|
text+=$__block_text
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(id -u "$USER")" == 0 ]; then
|
if [ "$(id -u "$USER")" == 0 ]; then
|
||||||
__prompt_block $BLACK $YELLOW '⚡'
|
__prompt_block $BLACK $YELLOW ''
|
||||||
text+=$__block_text
|
text+=$__block_text
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(jobs -l | wc -l)" != 0 ]; then
|
if [ "$(jobs -l | wc -l)" != 0 ]; then
|
||||||
__prompt_block $BLACK $CYAN '⚙'
|
__prompt_block $BLACK $CYAN ''
|
||||||
text+=$__block_text
|
text+=$__block_text
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue