my-fish-config/functions/_tide_parent_dirs.fish
2025-03-18 19:21:17 +01:00

8 lines
220 B
Fish

function _tide_parent_dirs --on-variable PWD
set -g _tide_parent_dirs (string escape (
for dir in (string split / -- $PWD)
set -la parts $dir
string join / -- $parts
end))
end