From a81ed2c263e67efd87db8f1ea9913c3141dbcf91 Mon Sep 17 00:00:00 2001 From: Luca Corsini Date: Wed, 16 Nov 2016 14:36:40 +0100 Subject: [PATCH 1/6] nerdfont-fontconfig fallback support --- functions/icons.zsh | 54 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/functions/icons.zsh b/functions/icons.zsh index 2f30cff2c..050c4ae61 100644 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -128,6 +128,60 @@ case $POWERLEVEL9K_MODE in PYTHON_ICON $'\U1F40D' # 🐍 ) ;; + 'nerdfont-fontconfig') + # fontconfig with awesome-font required! See + # https://github.com/gabrielelana/awesome-terminal-fonts + icons=( + LEFT_SEGMENT_SEPARATOR $'\uE0B0' #  + RIGHT_SEGMENT_SEPARATOR $'\uE0B2' #  + LEFT_SEGMENT_END_SEPARATOR ' ' # Whitespace + LEFT_SUBSEGMENT_SEPARATOR $'\uE0B1' #  + RIGHT_SUBSEGMENT_SEPARATOR $'\uE0B3' #  + CARRIAGE_RETURN_ICON $'\u21B5' # ↵ + ROOT_ICON $'\uF201' #  + RUBY_ICON $'\uF219 ' #  + AWS_ICON $'\uF296' #  + AWS_EB_ICON $'\U1F331 ' #  + BACKGROUND_JOBS_ICON $'\uF013 ' #  + TEST_ICON $'\uF291' #  + TODO_ICON $'\uF133' #  + BATTERY_ICON $'\UF240' #  + OK_ICON $'\uF00C' #  + FAIL_ICON $'\uF00D' #  + SYMFONY_ICON 'SF' + NODE_ICON $'\uE617' # 嫏 + MULTILINE_FIRST_PROMPT_PREFIX $'\u256D'$'\U2500' # ╭─ + MULTILINE_SECOND_PROMPT_PREFIX $'\u2570'$'\U2500 ' # ╰─ + APPLE_ICON $'\uF179' #  + FREEBSD_ICON $'\UF30E ' #  + LINUX_ICON $'\uF17C ' #  + SUNOS_ICON $'\uF185 ' #  + HOME_ICON $'\uF015' #  + HOME_SUB_ICON $'\uF07C' #  + FOLDER_ICON $'\uF115' #  + NETWORK_ICON $'\uF09E' #  + LOAD_ICON $'\uF080 ' #  + SWAP_ICON $'\uF0E4' #  + RAM_ICON $'\uF0E4' #  + SERVER_ICON $'\uF296' #  + VCS_UNTRACKED_ICON $'\uF059' #  + VCS_UNSTAGED_ICON $'\uF06A' #  + VCS_STAGED_ICON $'\uF055' #  + VCS_STASH_ICON $'\uF01C ' #  + VCS_INCOMING_CHANGES_ICON $'\uF01A ' #  + VCS_OUTGOING_CHANGES_ICON $'\uF01B ' #  + VCS_TAG_ICON $'\uF217 ' #  + VCS_BOOKMARK_ICON $'\uF27B' #  + VCS_COMMIT_ICON $'\uF221 ' #  + VCS_BRANCH_ICON $'\uF126' #  + VCS_REMOTE_BRANCH_ICON ' '$'\uF204 ' #  + VCS_GIT_ICON $'\uF113 ' #  + VCS_HG_ICON $'\uF0C3 ' #  + VCS_SVN_ICON '(svn) ' + RUST_ICON $'\uE6A8' #  + PYTHON_ICON $'\UE73C' #  + ) + ;; *) # Powerline-Patched Font required! # See https://github.com/Lokaltog/powerline-fonts From c4b42b78a0954310c719c11ad8558c60a6fc3136 Mon Sep 17 00:00:00 2001 From: Luca Corsini Date: Wed, 16 Nov 2016 15:05:36 +0100 Subject: [PATCH 2/6] nerdfont-fontconfig fallback support --- functions/icons.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/icons.zsh b/functions/icons.zsh index 050c4ae61..9a2de243a 100644 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -163,7 +163,7 @@ case $POWERLEVEL9K_MODE in LOAD_ICON $'\uF080 ' #  SWAP_ICON $'\uF0E4' #  RAM_ICON $'\uF0E4' #  - SERVER_ICON $'\uF296' #  + SERVER_ICON $'\uF473' # 䏙 VCS_UNTRACKED_ICON $'\uF059' #  VCS_UNSTAGED_ICON $'\uF06A' #  VCS_STAGED_ICON $'\uF055' #  @@ -173,13 +173,13 @@ case $POWERLEVEL9K_MODE in VCS_TAG_ICON $'\uF217 ' #  VCS_BOOKMARK_ICON $'\uF27B' #  VCS_COMMIT_ICON $'\uF221 ' #  - VCS_BRANCH_ICON $'\uF126' #  + VCS_BRANCH_ICON $'\uF126 ' #  VCS_REMOTE_BRANCH_ICON ' '$'\uF204 ' #  VCS_GIT_ICON $'\uF113 ' #  VCS_HG_ICON $'\uF0C3 ' #  VCS_SVN_ICON '(svn) ' - RUST_ICON $'\uE6A8' #  - PYTHON_ICON $'\UE73C' #  + RUST_ICON $'\uE6A8 ' #  + PYTHON_ICON $'\UE73C ' #  ) ;; *) From bb51bcfb2d086c1319d8c39d1e548486a06f9178 Mon Sep 17 00:00:00 2001 From: Luca Corsini Date: Wed, 16 Nov 2016 15:12:41 +0100 Subject: [PATCH 3/6] nerdfont-fontconfig fallback support --- functions/icons.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/icons.zsh b/functions/icons.zsh index 9a2de243a..42eb938c5 100644 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -129,8 +129,8 @@ case $POWERLEVEL9K_MODE in ) ;; 'nerdfont-fontconfig') - # fontconfig with awesome-font required! See - # https://github.com/gabrielelana/awesome-terminal-fonts + # fontconfig with nerd-font required! See + # https://github.com/ryanoasis/nerd-fonts icons=( LEFT_SEGMENT_SEPARATOR $'\uE0B0' #  RIGHT_SEGMENT_SEPARATOR $'\uE0B2' #  From 6e706bbc2945b1cec620fd22c6415e531fc519c8 Mon Sep 17 00:00:00 2001 From: Luca Corsini Date: Wed, 16 Nov 2016 15:25:26 +0100 Subject: [PATCH 4/6] nerdfont-fontconfig fallback support --- functions/icons.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/icons.zsh b/functions/icons.zsh index 42eb938c5..7c24be0bc 100644 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -140,7 +140,7 @@ case $POWERLEVEL9K_MODE in CARRIAGE_RETURN_ICON $'\u21B5' # ↵ ROOT_ICON $'\uF201' #  RUBY_ICON $'\uF219 ' #  - AWS_ICON $'\uF296' #  + AWS_ICON $'\uE7AD' # 䛏 AWS_EB_ICON $'\U1F331 ' #  BACKGROUND_JOBS_ICON $'\uF013 ' #  TEST_ICON $'\uF291' #  From 6017c985ba571e48d50aaa9ad25d1f50c9fa3cec Mon Sep 17 00:00:00 2001 From: Luca Corsini Date: Wed, 4 Jan 2017 17:35:09 +0100 Subject: [PATCH 5/6] added space to double-width BATTERY ICON --- functions/icons.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/icons.zsh b/functions/icons.zsh index 7c24be0bc..729c2534c 100644 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -145,7 +145,7 @@ case $POWERLEVEL9K_MODE in BACKGROUND_JOBS_ICON $'\uF013 ' #  TEST_ICON $'\uF291' #  TODO_ICON $'\uF133' #  - BATTERY_ICON $'\UF240' #  + BATTERY_ICON $'\UF240 ' #  OK_ICON $'\uF00C' #  FAIL_ICON $'\uF00D' #  SYMFONY_ICON 'SF' From e0caa42e39427a17a6535409fa261f0dbb7a5b53 Mon Sep 17 00:00:00 2001 From: Luca Corsini Date: Wed, 4 Jan 2017 23:11:39 +0100 Subject: [PATCH 6/6] corrections --- functions/icons.zsh | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/functions/icons.zsh b/functions/icons.zsh index 729c2534c..2066c5228 100644 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -138,23 +138,23 @@ case $POWERLEVEL9K_MODE in LEFT_SUBSEGMENT_SEPARATOR $'\uE0B1' #  RIGHT_SUBSEGMENT_SEPARATOR $'\uE0B3' #  CARRIAGE_RETURN_ICON $'\u21B5' # ↵ - ROOT_ICON $'\uF201' #  + ROOT_ICON $'\uE614 ' #  RUBY_ICON $'\uF219 ' #  - AWS_ICON $'\uE7AD' # 䛏 + AWS_ICON $'\uE7AD' #  AWS_EB_ICON $'\U1F331 ' #  BACKGROUND_JOBS_ICON $'\uF013 ' #  TEST_ICON $'\uF291' #  TODO_ICON $'\uF133' #  - BATTERY_ICON $'\UF240 ' #  + BATTERY_ICON $'\UF240 ' #  OK_ICON $'\uF00C' #  FAIL_ICON $'\uF00D' #  - SYMFONY_ICON 'SF' - NODE_ICON $'\uE617' # 嫏 + SYMFONY_ICON $'\uE757 ' #  + NODE_ICON $'\uE617 ' #  MULTILINE_FIRST_PROMPT_PREFIX $'\u256D'$'\U2500' # ╭─ MULTILINE_SECOND_PROMPT_PREFIX $'\u2570'$'\U2500 ' # ╰─ APPLE_ICON $'\uF179' #  - FREEBSD_ICON $'\UF30E ' #  - LINUX_ICON $'\uF17C ' #  + FREEBSD_ICON $'\UF30E ' #  + LINUX_ICON $'\uF17C ' #  SUNOS_ICON $'\uF185 ' #  HOME_ICON $'\uF015' #  HOME_SUB_ICON $'\uF07C' #  @@ -163,22 +163,22 @@ case $POWERLEVEL9K_MODE in LOAD_ICON $'\uF080 ' #  SWAP_ICON $'\uF0E4' #  RAM_ICON $'\uF0E4' #  - SERVER_ICON $'\uF473' # 䏙 + SERVER_ICON $'\uF473' #  VCS_UNTRACKED_ICON $'\uF059' #  VCS_UNSTAGED_ICON $'\uF06A' #  VCS_STAGED_ICON $'\uF055' #  VCS_STASH_ICON $'\uF01C ' #  VCS_INCOMING_CHANGES_ICON $'\uF01A ' #  VCS_OUTGOING_CHANGES_ICON $'\uF01B ' #  - VCS_TAG_ICON $'\uF217 ' #  - VCS_BOOKMARK_ICON $'\uF27B' #  - VCS_COMMIT_ICON $'\uF221 ' #  - VCS_BRANCH_ICON $'\uF126 ' #  - VCS_REMOTE_BRANCH_ICON ' '$'\uF204 ' #  + VCS_TAG_ICON $'\uF412 ' #  + VCS_BOOKMARK_ICON $'\uF461 ' #  + VCS_COMMIT_ICON $'\uE729 ' #  + VCS_BRANCH_ICON $'\uF126 ' #  + VCS_REMOTE_BRANCH_ICON $'\uF484 ' #  VCS_GIT_ICON $'\uF113 ' #  VCS_HG_ICON $'\uF0C3 ' #  - VCS_SVN_ICON '(svn) ' - RUST_ICON $'\uE6A8 ' #  + VCS_SVN_ICON $'\uE72D ' #  + RUST_ICON $'\uE7A8 ' #  PYTHON_ICON $'\UE73C ' #  ) ;;