Skip to content

Commit ce301f2

Browse files
committed
Merge branch 'main' into update-megalinter
2 parents 8f123ee + 6f5e08a commit ce301f2

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

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)