aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2017-08-12 20:46:08 +0300
committerBen Hilburn <bhilburn@gmail.com>2017-08-12 20:46:08 +0300
commit02332d596214c8e68bd3e86a8d0b90d3a4d60cf1 (patch)
tree10141d1b780c4693a000ebc13d77f1051a009d44 /functions
parent6aca483b6046b7ec4a2ace6a0d1d3c2fd1022a36 (diff)
parentf8ba6937b9b649602f78c89397ec8e6cdd2c0b23 (diff)
Merge branch 'master' into next
Diffstat (limited to 'functions')
-rw-r--r--functions/icons.zsh12
-rw-r--r--functions/utilities.zsh2
2 files changed, 7 insertions, 7 deletions
diff --git a/functions/icons.zsh b/functions/icons.zsh
index 93f3c3b5..3a4909f7 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' # ⬢
@@ -78,7 +78,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 ''
@@ -110,7 +110,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' # ⬢
@@ -148,8 +148,8 @@ case $POWERLEVEL9K_MODE in
VCS_GIT_GITLAB_ICON $'\uF296 ' # 
VCS_HG_ICON $'\uF0C3 ' # 
VCS_SVN_ICON '(svn) '
- RUST_ICON $'\uE6A8' # 
- PYTHON_ICON $'\U1F40D' # 🐍
+ RUST_ICON $'\uE6A8' # 
+ PYTHON_ICON $'\ue63c' # 
SWIFT_ICON ''
GO_ICON ''
PUBLIC_IP_ICON ''
@@ -252,7 +252,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' # ⬢
diff --git a/functions/utilities.zsh b/functions/utilities.zsh
index 9bd82060..b4bfb838 100644
--- a/functions/utilities.zsh
+++ b/functions/utilities.zsh
@@ -216,7 +216,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"
}