diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-08-12 20:46:08 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2017-08-12 20:46:08 +0300 |
commit | 02332d596214c8e68bd3e86a8d0b90d3a4d60cf1 (patch) | |
tree | 10141d1b780c4693a000ebc13d77f1051a009d44 /functions/utilities.zsh | |
parent | 6aca483b6046b7ec4a2ace6a0d1d3c2fd1022a36 (diff) | |
parent | f8ba6937b9b649602f78c89397ec8e6cdd2c0b23 (diff) |
Merge branch 'master' into next
Diffstat (limited to 'functions/utilities.zsh')
-rw-r--r-- | functions/utilities.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
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" } |