Changed \u and \U to reflect number of hex digits to follow

Some unicode icon strings were set with \uHHHHH which showed the wrong
characters on some implementations of zsh (linux and macOS).  Changed
\uHHHHH to \UHHHHH and conversely changed \UHHHH to \uHHHH.
pull/22/head
bsidhipong 8 years ago
parent c4fdc8f708
commit ef1e2c99b6

@ -20,55 +20,55 @@ case $POWERLEVEL9K_MODE in
# Set the right locale to protect special characters # Set the right locale to protect special characters
local LC_ALL="" LC_CTYPE="en_US.UTF-8" local LC_ALL="" LC_CTYPE="en_US.UTF-8"
icons=( icons=(
LEFT_SEGMENT_SEPARATOR $'\UE0B0' #  LEFT_SEGMENT_SEPARATOR $'\uE0B0' # 
RIGHT_SEGMENT_SEPARATOR $'\UE0B2' #  RIGHT_SEGMENT_SEPARATOR $'\uE0B2' # 
LEFT_SEGMENT_END_SEPARATOR ' ' # Whitespace LEFT_SEGMENT_END_SEPARATOR ' ' # Whitespace
LEFT_SUBSEGMENT_SEPARATOR $'\UE0B1' #  LEFT_SUBSEGMENT_SEPARATOR $'\uE0B1' # 
RIGHT_SUBSEGMENT_SEPARATOR $'\UE0B3' #  RIGHT_SUBSEGMENT_SEPARATOR $'\uE0B3' # 
CARRIAGE_RETURN_ICON $'\U21B5' # ↵ CARRIAGE_RETURN_ICON $'\u21B5' # ↵
ROOT_ICON $'\UE801' #  ROOT_ICON $'\uE801' # 
RUBY_ICON $'\UE847 ' #  RUBY_ICON $'\uE847 ' # 
AWS_ICON $'\UE895' #  AWS_ICON $'\uE895' # 
AWS_EB_ICON $'\U1F331 ' # 🌱 AWS_EB_ICON $'\U1F331 ' # 🌱
BACKGROUND_JOBS_ICON $'\UE82F ' #  BACKGROUND_JOBS_ICON $'\uE82F ' # 
TEST_ICON $'\UE891' #  TEST_ICON $'\uE891' # 
TODO_ICON $'\U2611' # ☑ TODO_ICON $'\u2611' # ☑
BATTERY_ICON $'\UE894' #  BATTERY_ICON $'\uE894' # 
OK_ICON $'\U2713' # ✓ OK_ICON $'\u2713' # ✓
FAIL_ICON $'\U2718' # ✘ FAIL_ICON $'\u2718' # ✘
SYMFONY_ICON 'SF' SYMFONY_ICON 'SF'
NODE_ICON $'\U2B22' # ⬢ NODE_ICON $'\u2B22' # ⬢
MULTILINE_FIRST_PROMPT_PREFIX $'\U256D'$'\U2500' MULTILINE_FIRST_PROMPT_PREFIX $'\u256D'$'\U2500'
MULTILINE_SECOND_PROMPT_PREFIX $'\U2570'$'\U2500 ' MULTILINE_SECOND_PROMPT_PREFIX $'\u2570'$'\U2500 '
APPLE_ICON $'\UE26E' #  APPLE_ICON $'\uE26E' # 
FREEBSD_ICON $'\U1F608 ' # 😈 FREEBSD_ICON $'\U1F608 ' # 😈
LINUX_ICON $'\UE271' #  LINUX_ICON $'\uE271' # 
SUNOS_ICON $'\U1F31E ' # 🌞 SUNOS_ICON $'\U1F31E ' # 🌞
HOME_ICON $'\UE12C' #  HOME_ICON $'\uE12C' # 
HOME_SUB_ICON $'\UE18D' #  HOME_SUB_ICON $'\uE18D' # 
FOLDER_ICON $'\UE818' #  FOLDER_ICON $'\uE818' # 
NETWORK_ICON $'\UE1AD' #  NETWORK_ICON $'\uE1AD' # 
LOAD_ICON $'\UE190 ' #  LOAD_ICON $'\uE190 ' # 
SWAP_ICON $'\UE87D' #  SWAP_ICON $'\uE87D' # 
RAM_ICON $'\UE1E2 ' #  RAM_ICON $'\uE1E2 ' # 
SERVER_ICON $'\UE895' #  SERVER_ICON $'\uE895' # 
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_ICON $'\UE1EB ' #  #VCS_INCOMING_CHANGES_ICON $'\uE1EB ' # 
#VCS_INCOMING_CHANGES_ICON $'\UE80D ' #  #VCS_INCOMING_CHANGES_ICON $'\uE80D ' # 
VCS_INCOMING_CHANGES_ICON $'\UE131 ' #  VCS_INCOMING_CHANGES_ICON $'\uE131 ' # 
#VCS_OUTGOING_CHANGES_ICON $'\UE1EC ' #  #VCS_OUTGOING_CHANGES_ICON $'\uE1EC ' # 
#VCS_OUTGOING_CHANGES_ICON $'\UE80E ' #  #VCS_OUTGOING_CHANGES_ICON $'\uE80E ' # 
VCS_OUTGOING_CHANGES_ICON $'\UE132 ' #  VCS_OUTGOING_CHANGES_ICON $'\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 ' # 
VCS_SVN_ICON '(svn) ' VCS_SVN_ICON '(svn) '
RUST_ICON '' RUST_ICON ''
PYTHON_ICON $'\U1F40D' # 🐍 PYTHON_ICON $'\U1F40D' # 🐍
@ -78,53 +78,53 @@ case $POWERLEVEL9K_MODE in
# fontconfig with awesome-font required! See # fontconfig with awesome-font required! See
# https://github.com/gabrielelana/awesome-terminal-fonts # https://github.com/gabrielelana/awesome-terminal-fonts
icons=( icons=(
LEFT_SEGMENT_SEPARATOR $'\UE0B0' #  LEFT_SEGMENT_SEPARATOR $'\uE0B0' # 
RIGHT_SEGMENT_SEPARATOR $'\UE0B2' #  RIGHT_SEGMENT_SEPARATOR $'\uE0B2' # 
LEFT_SEGMENT_END_SEPARATOR ' ' # Whitespace LEFT_SEGMENT_END_SEPARATOR ' ' # Whitespace
LEFT_SUBSEGMENT_SEPARATOR $'\UE0B1' #  LEFT_SUBSEGMENT_SEPARATOR $'\uE0B1' # 
RIGHT_SUBSEGMENT_SEPARATOR $'\UE0B3' #  RIGHT_SUBSEGMENT_SEPARATOR $'\uE0B3' # 
CARRIAGE_RETURN_ICON $'\U21B5' # ↵ CARRIAGE_RETURN_ICON $'\u21B5' # ↵
ROOT_ICON $'\uF201' #  ROOT_ICON $'\uF201' # 
RUBY_ICON $'\UF219 ' #  RUBY_ICON $'\uF219 ' # 
AWS_ICON $'\UF296' #  AWS_ICON $'\uF296' # 
AWS_EB_ICON $'\U1F331 ' # 🌱 AWS_EB_ICON $'\U1F331 ' # 🌱
BACKGROUND_JOBS_ICON $'\UF013 ' #  BACKGROUND_JOBS_ICON $'\uF013 ' # 
TEST_ICON $'\UF291' #  TEST_ICON $'\uF291' # 
TODO_ICON $'\U2611' # ☑ TODO_ICON $'\u2611' # ☑
BATTERY_ICON $'\u1F50B' # 🔋 BATTERY_ICON $'\U1F50B' # 🔋
OK_ICON $'\UF23A' #  OK_ICON $'\uF23A' # 
FAIL_ICON $'\UF281' #  FAIL_ICON $'\uF281' # 
SYMFONY_ICON 'SF' SYMFONY_ICON 'SF'
NODE_ICON $'\U2B22' # ⬢ NODE_ICON $'\u2B22' # ⬢
MULTILINE_FIRST_PROMPT_PREFIX $'\U256D'$'\U2500' # ╭─ MULTILINE_FIRST_PROMPT_PREFIX $'\u256D'$'\U2500' # ╭─
MULTILINE_SECOND_PROMPT_PREFIX $'\U2570'$'\U2500 ' # ╰─ MULTILINE_SECOND_PROMPT_PREFIX $'\u2570'$'\U2500 ' # ╰─
APPLE_ICON $'\UF179' #  APPLE_ICON $'\uF179' # 
FREEBSD_ICON $'\U1F608 ' # 😈 FREEBSD_ICON $'\U1F608 ' # 😈
LINUX_ICON $'\UF17C' #  LINUX_ICON $'\uF17C' # 
SUNOS_ICON $'\UF185 ' #  SUNOS_ICON $'\uF185 ' # 
HOME_ICON $'\UF015' #  HOME_ICON $'\uF015' # 
HOME_SUB_ICON $'\UF07C' #  HOME_SUB_ICON $'\uF07C' # 
FOLDER_ICON $'\UF115' #  FOLDER_ICON $'\uF115' # 
NETWORK_ICON $'\UF09E' #  NETWORK_ICON $'\uF09E' # 
LOAD_ICON $'\UF080 ' #  LOAD_ICON $'\uF080 ' # 
SWAP_ICON $'\UF0E4' #  SWAP_ICON $'\uF0E4' # 
RAM_ICON $'\UF0E4' #  RAM_ICON $'\uF0E4' # 
SERVER_ICON $'\UF296' #  SERVER_ICON $'\uF296' # 
VCS_UNTRACKED_ICON $'\UF059' #  VCS_UNTRACKED_ICON $'\uF059' # 
VCS_UNSTAGED_ICON $'\UF06A' #  VCS_UNSTAGED_ICON $'\uF06A' # 
VCS_STAGED_ICON $'\UF055' #  VCS_STAGED_ICON $'\uF055' # 
VCS_STASH_ICON $'\UF01C ' #  VCS_STASH_ICON $'\uF01C ' # 
VCS_INCOMING_CHANGES_ICON $'\UF01A ' #  VCS_INCOMING_CHANGES_ICON $'\uF01A ' # 
VCS_OUTGOING_CHANGES_ICON $'\UF01B ' #  VCS_OUTGOING_CHANGES_ICON $'\uF01B ' # 
VCS_TAG_ICON $'\UF217 ' #  VCS_TAG_ICON $'\uF217 ' # 
VCS_BOOKMARK_ICON $'\UF27B' #  VCS_BOOKMARK_ICON $'\uF27B' # 
VCS_COMMIT_ICON $'\UF221 ' #  VCS_COMMIT_ICON $'\uF221 ' # 
VCS_BRANCH_ICON $'\UF126' #  VCS_BRANCH_ICON $'\uF126' # 
VCS_REMOTE_BRANCH_ICON ' '$'\UF204 ' #  VCS_REMOTE_BRANCH_ICON ' '$'\uF204 ' # 
VCS_GIT_ICON $'\UF113 ' #  VCS_GIT_ICON $'\uF113 ' # 
VCS_HG_ICON $'\UF0C3 ' #  VCS_HG_ICON $'\uF0C3 ' # 
VCS_SVN_ICON '(svn) ' VCS_SVN_ICON '(svn) '
RUST_ICON $'\UE6A8' #  RUST_ICON $'\uE6A8' # 
PYTHON_ICON $'\U1F40D' # 🐍 PYTHON_ICON $'\U1F40D' # 🐍
) )
;; ;;
@ -135,17 +135,17 @@ case $POWERLEVEL9K_MODE in
LEFT_SEGMENT_SEPARATOR $'\uE0B0' #  LEFT_SEGMENT_SEPARATOR $'\uE0B0' # 
RIGHT_SEGMENT_SEPARATOR $'\uE0B2' #  RIGHT_SEGMENT_SEPARATOR $'\uE0B2' # 
LEFT_SEGMENT_END_SEPARATOR ' ' # Whitespace LEFT_SEGMENT_END_SEPARATOR ' ' # Whitespace
LEFT_SUBSEGMENT_SEPARATOR $'\UE0B1' #  LEFT_SUBSEGMENT_SEPARATOR $'\uE0B1' # 
RIGHT_SUBSEGMENT_SEPARATOR $'\UE0B3' #  RIGHT_SUBSEGMENT_SEPARATOR $'\uE0B3' # 
CARRIAGE_RETURN_ICON $'\U21B5' # ↵ CARRIAGE_RETURN_ICON $'\u21B5' # ↵
ROOT_ICON $'\u26A1' # ⚡ ROOT_ICON $'\u26A1' # ⚡
RUBY_ICON '' RUBY_ICON ''
AWS_ICON 'AWS:' AWS_ICON 'AWS:'
AWS_EB_ICON $'\U1F331 ' # 🌱 AWS_EB_ICON $'\U1F331 ' # 🌱
BACKGROUND_JOBS_ICON $'\u2699' # ⚙ BACKGROUND_JOBS_ICON $'\u2699' # ⚙
TEST_ICON '' TEST_ICON ''
TODO_ICON $'\U2611' # ☑ TODO_ICON $'\u2611' # ☑
BATTERY_ICON $'\u1F50B' # 🔋 BATTERY_ICON $'\U1F50B' # 🔋
OK_ICON $'\u2713' # ✓ OK_ICON $'\u2713' # ✓
FAIL_ICON $'\u2718' # ✘ FAIL_ICON $'\u2718' # ✘
SYMFONY_ICON 'SF' SYMFONY_ICON 'SF'

Loading…
Cancel
Save