Skip to content

Commit 3485e34

Browse files
authored
Merge pull request #2 from nnungest/fix/parse-parent-dirs
Fix/parse parent dirs
2 parents 34afb14 + 16d8dba commit 3485e34

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

functions/_tide_parent_dirs.fish

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
function _tide_parent_dirs --on-variable PWD
2-
set -g _tide_parent_dirs (string escape (
3-
for dir in (string split / -- $PWD)
4-
set -la parts $dir
5-
string join / -- $parts
6-
end))
2+
set -g _tide_parent_dirs (
3+
string escape (
4+
for dir in (string split / -- $PWD)
5+
set -fa parts $dir
6+
string join / -- $parts
7+
end
8+
)
9+
)
710
end

0 commit comments

Comments
 (0)