aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions/icons.zsh4
-rw-r--r--functions/utilities.zsh2
2 files changed, 3 insertions, 3 deletions
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 ''
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"
}