mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-25 13:30:07 +00:00
Uhm. It seems to make a difference, whether you print unicode characters with lowercase \u or uppercase \U. Some of them only work with uppercase \U. Therefore I changed all of them to the uppercase variant.
Try `echo $'\u1F427' $'\U1F427'`. Only the latter one should work. The first one prints some gibberish.
This commit is contained in:
parent
c116ead6aa
commit
504a64996b
1 changed files with 84 additions and 84 deletions
|
@ -48,27 +48,27 @@
|
||||||
case $(uname) in
|
case $(uname) in
|
||||||
FreeBSD)
|
FreeBSD)
|
||||||
OS=FreeBSD
|
OS=FreeBSD
|
||||||
OS_ICON=$'\u1F608' # 😈
|
OS_ICON=$'\U1F608' # 😈
|
||||||
;;
|
;;
|
||||||
DragonFly)
|
DragonFly)
|
||||||
OS=FreeBSD
|
OS=FreeBSD
|
||||||
OS_ICON=$'\u1F608' # 😈
|
OS_ICON=$'\U1F608' # 😈
|
||||||
;;
|
;;
|
||||||
OpenBSD)
|
OpenBSD)
|
||||||
OS=OpenBSD
|
OS=OpenBSD
|
||||||
OS_ICON=$'\u1F608' # 😈
|
OS_ICON=$'\U1F608' # 😈
|
||||||
;;
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
OS=Darwin
|
OS=Darwin
|
||||||
OS_ICON=$'\uF8FF' #
|
OS_ICON=$'\UF8FF' #
|
||||||
;;
|
;;
|
||||||
SunOS)
|
SunOS)
|
||||||
OS=SunOS
|
OS=SunOS
|
||||||
OS_ICON=$'\u1F31E' # 🌞
|
OS_ICON=$'\U1F31E' # 🌞
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
OS=Linux
|
OS=Linux
|
||||||
OS_ICON=$'\u1F427' # 🐧
|
OS_ICON=$'\U1F427' # 🐧
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -87,112 +87,112 @@ case $POWERLEVEL9K_MODE in
|
||||||
# See https://github.com/gabrielelana/awesome-terminal-fonts/tree/patching-strategy/patched
|
# See https://github.com/gabrielelana/awesome-terminal-fonts/tree/patching-strategy/patched
|
||||||
LEFT_SEGMENT_SEPARATOR=''
|
LEFT_SEGMENT_SEPARATOR=''
|
||||||
RIGHT_SEGMENT_SEPARATOR=''
|
RIGHT_SEGMENT_SEPARATOR=''
|
||||||
ROOT_ICON="\uE801" #
|
ROOT_ICON="\UE801" #
|
||||||
RUBY_ICON="\uE847" #
|
RUBY_ICON="\UE847" #
|
||||||
AWS_ICON="\uE895" #
|
AWS_ICON="\UE895" #
|
||||||
BACKGROUND_JOBS_ICON="\uE82F " #
|
BACKGROUND_JOBS_ICON="\UE82F " #
|
||||||
TEST_ICON="\uE891" #
|
TEST_ICON="\UE891" #
|
||||||
OK_ICON="\u2713" # ✓
|
OK_ICON="\U2713" # ✓
|
||||||
FAIL_ICON="\u2718" # ✘
|
FAIL_ICON="\U2718" # ✘
|
||||||
SYMFONY_ICON="SF"
|
SYMFONY_ICON="SF"
|
||||||
VCS_UNTRACKED_ICON="\uE16C" #
|
VCS_UNTRACKED_ICON="\UE16C" #
|
||||||
VCS_UNSTAGED_ICON="\uE17C" #
|
VCS_UNSTAGED_ICON="\UE17C" #
|
||||||
VCS_STAGED_ICON="\uE168" #
|
VCS_STAGED_ICON="\UE168" #
|
||||||
VCS_STASH_ICON="\uE133 " #
|
VCS_STASH_ICON="\UE133 " #
|
||||||
#VCS_INCOMING_CHANGES="\uE1EB " #
|
#VCS_INCOMING_CHANGES="\UE1EB " #
|
||||||
#VCS_INCOMING_CHANGES="\uE80D " #
|
#VCS_INCOMING_CHANGES="\UE80D " #
|
||||||
VCS_INCOMING_CHANGES="\uE131 " #
|
VCS_INCOMING_CHANGES="\UE131 " #
|
||||||
#VCS_OUTGOING_CHANGES="\uE1EC " #
|
#VCS_OUTGOING_CHANGES="\UE1EC " #
|
||||||
#VCS_OUTGOING_CHANGES="\uE80E " #
|
#VCS_OUTGOING_CHANGES="\UE80E " #
|
||||||
VCS_OUTGOING_CHANGES="\uE132 " #
|
VCS_OUTGOING_CHANGES="\UE132 " #
|
||||||
VCS_TAG_ICON="\uE817 " #
|
VCS_TAG_ICON="\UE817 " #
|
||||||
VCS_BOOKMARK_ICON="\uE87B" #
|
VCS_BOOKMARK_ICON="\UE87B" #
|
||||||
VCS_COMMIT_ICON="\uE821 " #
|
VCS_COMMIT_ICON="\UE821 " #
|
||||||
VCS_BRANCH_ICON="\uE220" #
|
VCS_BRANCH_ICON="\UE220" #
|
||||||
VCS_REMOTE_BRANCH_ICON=" \uE804 " #
|
VCS_REMOTE_BRANCH_ICON=" \UE804 " #
|
||||||
VCS_GIT_ICON="\uE20E " #
|
VCS_GIT_ICON="\UE20E " #
|
||||||
VCS_HG_ICON="\uE1C3 " #
|
VCS_HG_ICON="\UE1C3 " #
|
||||||
;;
|
;;
|
||||||
'compatible')
|
'compatible')
|
||||||
LEFT_SEGMENT_SEPARATOR="\u2B80" # ⮀
|
LEFT_SEGMENT_SEPARATOR="\U2B80" # ⮀
|
||||||
RIGHT_SEGMENT_SEPARATOR="\u2B82" # ⮂
|
RIGHT_SEGMENT_SEPARATOR="\U2B82" # ⮂
|
||||||
ROOT_ICON="\u26A1" # ⚡
|
ROOT_ICON="\U26A1" # ⚡
|
||||||
RUBY_ICON=''
|
RUBY_ICON=''
|
||||||
AWS_ICON="AWS:"
|
AWS_ICON="AWS:"
|
||||||
BACKGROUND_JOBS_ICON="\u2699" # ⚙
|
BACKGROUND_JOBS_ICON="\U2699" # ⚙
|
||||||
TEST_ICON=''
|
TEST_ICON=''
|
||||||
OK_ICON="\u2713" # ✓
|
OK_ICON="\U2713" # ✓
|
||||||
FAIL_ICON="\u2718" # ✘
|
FAIL_ICON="\U2718" # ✘
|
||||||
SYMFONY_ICON="SF"
|
SYMFONY_ICON="SF"
|
||||||
VCS_UNTRACKED_ICON='?'
|
VCS_UNTRACKED_ICON='?'
|
||||||
VCS_UNSTAGED_ICON="\u25CF" # ●
|
VCS_UNSTAGED_ICON="\U25CF" # ●
|
||||||
VCS_STAGED_ICON="\u271A" # ✚
|
VCS_STAGED_ICON="\U271A" # ✚
|
||||||
VCS_STASH_ICON="\u235F" # ⍟
|
VCS_STASH_ICON="\U235F" # ⍟
|
||||||
VCS_INCOMING_CHANGES="\u2193" # ↓
|
VCS_INCOMING_CHANGES="\U2193" # ↓
|
||||||
VCS_OUTGOING_CHANGES="\u2191" # ↑
|
VCS_OUTGOING_CHANGES="\U2191" # ↑
|
||||||
VCS_TAG_ICON=''
|
VCS_TAG_ICON=''
|
||||||
VCS_BOOKMARK_ICON="\u263F" # ☿
|
VCS_BOOKMARK_ICON="\U263F" # ☿
|
||||||
VCS_COMMIT_ICON=''
|
VCS_COMMIT_ICON=''
|
||||||
VCS_BRANCH_ICON='@'
|
VCS_BRANCH_ICON='@'
|
||||||
VCS_REMOTE_BRANCH_ICON="\u2192" # →
|
VCS_REMOTE_BRANCH_ICON="\U2192" # →
|
||||||
VCS_GIT_ICON='Git'
|
VCS_GIT_ICON='Git'
|
||||||
VCS_HG_ICON='HG'
|
VCS_HG_ICON='HG'
|
||||||
;;
|
;;
|
||||||
'awesome-patched')
|
'awesome-patched')
|
||||||
# Awesome-Patched Font required!
|
# Awesome-Patched Font required!
|
||||||
# See https://github.com/gabrielelana/awesome-terminal-fonts/tree/patching-strategy/patched
|
# See https://github.com/gabrielelana/awesome-terminal-fonts/tree/patching-strategy/patched
|
||||||
LEFT_SEGMENT_SEPARATOR="\uE0B0" #
|
LEFT_SEGMENT_SEPARATOR="\UE0B0" #
|
||||||
RIGHT_SEGMENT_SEPARATOR="\uE0B2" #
|
RIGHT_SEGMENT_SEPARATOR="\UE0B2" #
|
||||||
ROOT_ICON="\u26A1" # ⚡
|
ROOT_ICON="\U26A1" # ⚡
|
||||||
RUBY_ICON="\uE847" #
|
RUBY_ICON="\UE847" #
|
||||||
AWS_ICON="\uE895" #
|
AWS_ICON="\UE895" #
|
||||||
BACKGROUND_JOBS_ICON="\uE82F " #
|
BACKGROUND_JOBS_ICON="\UE82F " #
|
||||||
TEST_ICON="\uE891" #
|
TEST_ICON="\UE891" #
|
||||||
OK_ICON="\u2713" # ✓
|
OK_ICON="\U2713" # ✓
|
||||||
FAIL_ICON="\u2718" # ✘
|
FAIL_ICON="\U2718" # ✘
|
||||||
SYMFONY_ICON="SF"
|
SYMFONY_ICON="SF"
|
||||||
VCS_UNTRACKED_ICON="\uE16C" #
|
VCS_UNTRACKED_ICON="\UE16C" #
|
||||||
VCS_UNSTAGED_ICON="\uE17C" #
|
VCS_UNSTAGED_ICON="\UE17C" #
|
||||||
VCS_STAGED_ICON="\uE168" #
|
VCS_STAGED_ICON="\UE168" #
|
||||||
VCS_STASH_ICON="\uE133 " #
|
VCS_STASH_ICON="\UE133 " #
|
||||||
#VCS_INCOMING_CHANGES="\uE1EB " #
|
#VCS_INCOMING_CHANGES="\UE1EB " #
|
||||||
#VCS_INCOMING_CHANGES="\uE80D " #
|
#VCS_INCOMING_CHANGES="\UE80D " #
|
||||||
VCS_INCOMING_CHANGES="\uE131 " #
|
VCS_INCOMING_CHANGES="\UE131 " #
|
||||||
#VCS_OUTGOING_CHANGES="\uE1EC " #
|
#VCS_OUTGOING_CHANGES="\UE1EC " #
|
||||||
#VCS_OUTGOING_CHANGES="\uE80E " #
|
#VCS_OUTGOING_CHANGES="\UE80E " #
|
||||||
VCS_OUTGOING_CHANGES="\uE132 " #
|
VCS_OUTGOING_CHANGES="\UE132 " #
|
||||||
VCS_TAG_ICON="\uE817 " #
|
VCS_TAG_ICON="\UE817 " #
|
||||||
VCS_BOOKMARK_ICON="\uE87B" #
|
VCS_BOOKMARK_ICON="\UE87B" #
|
||||||
VCS_COMMIT_ICON="\uE821 " #
|
VCS_COMMIT_ICON="\UE821 " #
|
||||||
VCS_BRANCH_ICON="\uE220" #
|
VCS_BRANCH_ICON="\UE220" #
|
||||||
VCS_REMOTE_BRANCH_ICON=" \uE804 " #
|
VCS_REMOTE_BRANCH_ICON=" \UE804 " #
|
||||||
VCS_GIT_ICON="\uE20E " #
|
VCS_GIT_ICON="\UE20E " #
|
||||||
VCS_HG_ICON="\uE1C3 " #
|
VCS_HG_ICON="\UE1C3 " #
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Powerline-Patched Font required!
|
# Powerline-Patched Font required!
|
||||||
# See https://github.com/Lokaltog/powerline-fonts
|
# See https://github.com/Lokaltog/powerline-fonts
|
||||||
LEFT_SEGMENT_SEPARATOR="\uE0B0" #
|
LEFT_SEGMENT_SEPARATOR="\UE0B0" #
|
||||||
RIGHT_SEGMENT_SEPARATOR="\uE0B2" #
|
RIGHT_SEGMENT_SEPARATOR="\UE0B2" #
|
||||||
ROOT_ICON="\u26A1" # ⚡
|
ROOT_ICON="\U26A1" # ⚡
|
||||||
RUBY_ICON=''
|
RUBY_ICON=''
|
||||||
AWS_ICON="AWS:"
|
AWS_ICON="AWS:"
|
||||||
BACKGROUND_JOBS_ICON="\u2699" # ⚙
|
BACKGROUND_JOBS_ICON="\U2699" # ⚙
|
||||||
TEST_ICON=''
|
TEST_ICON=''
|
||||||
OK_ICON="\u2713" # ✓
|
OK_ICON="\U2713" # ✓
|
||||||
FAIL_ICON="\u2718" # ✘
|
FAIL_ICON="\U2718" # ✘
|
||||||
SYMFONY_ICON="SF"
|
SYMFONY_ICON="SF"
|
||||||
VCS_UNTRACKED_ICON='?'
|
VCS_UNTRACKED_ICON='?'
|
||||||
VCS_UNSTAGED_ICON="\u25CF" # ●
|
VCS_UNSTAGED_ICON="\U25CF" # ●
|
||||||
VCS_STAGED_ICON="\u271A" # ✚
|
VCS_STAGED_ICON="\U271A" # ✚
|
||||||
VCS_STASH_ICON="\u235F" # ⍟
|
VCS_STASH_ICON="\U235F" # ⍟
|
||||||
VCS_INCOMING_CHANGES="\u2193" # ↓
|
VCS_INCOMING_CHANGES="\U2193" # ↓
|
||||||
VCS_OUTGOING_CHANGES="\u2191" # ↑
|
VCS_OUTGOING_CHANGES="\U2191" # ↑
|
||||||
VCS_TAG_ICON=''
|
VCS_TAG_ICON=''
|
||||||
VCS_BOOKMARK_ICON="\u263F" # ☿
|
VCS_BOOKMARK_ICON="\U263F" # ☿
|
||||||
VCS_COMMIT_ICON=''
|
VCS_COMMIT_ICON=''
|
||||||
VCS_BRANCH_ICON="\uE0A0 " #
|
VCS_BRANCH_ICON="\UE0A0 " #
|
||||||
VCS_REMOTE_BRANCH_ICON="\u2192" # →
|
VCS_REMOTE_BRANCH_ICON="\U2192" # →
|
||||||
VCS_GIT_ICON=""
|
VCS_GIT_ICON=""
|
||||||
VCS_HG_ICON=""
|
VCS_HG_ICON=""
|
||||||
;;
|
;;
|
||||||
|
@ -520,7 +520,7 @@ prompt_longstatus() {
|
||||||
prompt_node_version() {
|
prompt_node_version() {
|
||||||
local nvm_prompt=$(node -v 2>/dev/null)
|
local nvm_prompt=$(node -v 2>/dev/null)
|
||||||
[[ -z "${nvm_prompt}" ]] && return
|
[[ -z "${nvm_prompt}" ]] && return
|
||||||
NODE_ICON=$'\u2B22' # ⬢
|
NODE_ICON=$'\U2B22' # ⬢
|
||||||
|
|
||||||
$1_prompt_segment "$0" "green" "white" "${nvm_prompt:1} $NODE_ICON"
|
$1_prompt_segment "$0" "green" "white" "${nvm_prompt:1} $NODE_ICON"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue