Merge branch 'master' into next
This commit is contained in:
commit
02332d5962
4 changed files with 32 additions and 12 deletions
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue