mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-12 16:20:06 +00:00
Updated path splitting line
Works in the console, but Travis doesn't like it.
This commit is contained in:
parent
a699393d58
commit
4996e955e0
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ function truncatePath() {
|
||||||
# if the path is in the home folder, don't add a "/" to the start
|
# if the path is in the home folder, don't add a "/" to the start
|
||||||
[[ $1 != "~"* ]] && trunc_path='/' || trunc_path=''
|
[[ $1 != "~"* ]] && trunc_path='/' || trunc_path=''
|
||||||
# split the path into an array using "/" as the delimiter and remove "~/"
|
# split the path into an array using "/" as the delimiter and remove "~/"
|
||||||
local paths=(${(s:/:)1})
|
local paths=(${(s:/:)${1}})
|
||||||
# declare locals for the directory being tested and its length
|
# declare locals for the directory being tested and its length
|
||||||
local test_dir test_dir_length
|
local test_dir test_dir_length
|
||||||
# do the needed truncation
|
# do the needed truncation
|
||||||
|
|
Loading…
Reference in a new issue