mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-01-19 04:47:40 +02:00
Another Travis test
This commit is contained in:
parent
f10a7daab0
commit
d31ac26caa
@ -234,7 +234,8 @@ function truncatePath() {
|
||||
# if the path is in the home folder, add "~/" to the start otherwise "/"
|
||||
[[ $1 == "~"* ]] && trunc_path='~/' || trunc_path='/'
|
||||
# split the path into an array using "/" as the delimiter
|
||||
local paths=(${(s:/:)${1//"~\/"/}})
|
||||
local paths=$1
|
||||
paths=(${(s:/:)${paths//"~\/"/}})
|
||||
# declare locals for the directory being tested and its length
|
||||
local test_dir test_dir_length
|
||||
# do the needed truncation
|
||||
|
Loading…
x
Reference in New Issue
Block a user