From a234636982349a82ab6c7f0674f3ff884acddc94 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Wed, 12 Jul 2017 03:29:31 +0200 Subject: Fix empty delimiter Even if the delimiter is empty, the min length should be 1. This fixes #558 --- functions/utilities.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions') diff --git a/functions/utilities.zsh b/functions/utilities.zsh index 86e5ba0e..39c5ecae 100644 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -212,7 +212,7 @@ function segmentShouldBeJoined() { # Given a directory path, truncate it according to the settings for # `truncate_from_right` function truncatePathFromRight() { - local delim_len=${#POWERLEVEL9K_SHORTEN_DELIMITER} + local delim_len=${#POWERLEVEL9K_SHORTEN_DELIMITER:-1} echo $1 | sed $SED_EXTENDED_REGEX_PARAMETER \ "s@(([^/]{$((POWERLEVEL9K_SHORTEN_DIR_LENGTH))})([^/]{$delim_len}))[^/]+/@\2$POWERLEVEL9K_SHORTEN_DELIMITER/@g" } -- cgit v1.2.3 From e3530de3dc2afc56836f3f2113734e3b42b15f1b Mon Sep 17 00:00:00 2001 From: Diego Rabatone Oliveira Date: Sat, 22 Jul 2017 12:51:39 -0300 Subject: Fix reference for python icon. While using awesome-terminal-fonts it is recommended to use `\ue63c` to reference python icon instead of `\U1F40D` (that wasn't even working). Ref: https://github.com/gabrielelana/awesome-terminal-fonts/issues/38#issuecomment-302939451 --- functions/icons.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions') diff --git a/functions/icons.zsh b/functions/icons.zsh index 5e719be1..272de840 100644 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -76,7 +76,7 @@ case $POWERLEVEL9K_MODE in VCS_HG_ICON $'\uE1C3 ' #  VCS_SVN_ICON '(svn) ' RUST_ICON '' - PYTHON_ICON $'\U1F40D' # 🐍 + PYTHON_ICON $'\ue63c' #  SWIFT_ICON '' GO_ICON '' PUBLIC_IP_ICON '' @@ -143,7 +143,7 @@ case $POWERLEVEL9K_MODE in VCS_HG_ICON $'\uF0C3 ' #  VCS_SVN_ICON '(svn) ' RUST_ICON $'\uE6A8' #  - PYTHON_ICON $'\U1F40D' # 🐍 + PYTHON_ICON $'\ue63c' #  SWIFT_ICON '' GO_ICON '' PUBLIC_IP_ICON '' -- cgit v1.2.3 From 1ded7c2c902536eb9582cad08b4b69b15d8761a5 Mon Sep 17 00:00:00 2001 From: Giorgi Gzirishvili Date: Fri, 28 Jul 2017 02:50:31 +0400 Subject: Update OK_ICON weight to march FAIL_ICON Fixes #576. --- functions/icons.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'functions') diff --git a/functions/icons.zsh b/functions/icons.zsh index 272de840..ab4d2bac 100644 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -35,7 +35,7 @@ case $POWERLEVEL9K_MODE in TODO_ICON $'\u2611' # ☑ BATTERY_ICON $'\uE894' #  DISK_ICON $'\uE1AE ' #  - OK_ICON $'\u2713' # ✓ + OK_ICON $'\u2714' # ✔ FAIL_ICON $'\u2718' # ✘ SYMFONY_ICON 'SF' NODE_ICON $'\u2B22' # ⬢ @@ -106,7 +106,7 @@ case $POWERLEVEL9K_MODE in TODO_ICON $'\u2611' # ☑ BATTERY_ICON $'\U1F50B' # 🔋 DISK_ICON $'\uF0A0 ' #  - OK_ICON $'\u2713' # ✓ + OK_ICON $'\u2714' # ✔ FAIL_ICON $'\u2718' # ✘ SYMFONY_ICON 'SF' NODE_ICON $'\u2B22' # ⬢ @@ -240,7 +240,7 @@ case $POWERLEVEL9K_MODE in TODO_ICON $'\u2611' # ☑ BATTERY_ICON $'\U1F50B' # 🔋 DISK_ICON $'hdd ' - OK_ICON $'\u2713' # ✓ + OK_ICON $'\u2714' # ✔ FAIL_ICON $'\u2718' # ✘ SYMFONY_ICON 'SF' NODE_ICON $'\u2B22' # ⬢ -- cgit v1.2.3