dotfiles/files/fish/functions/_tide_parent_dirs.fish

8 lines
220 B
Fish
Raw Normal View History

2023-02-23 12:47:06 +00:00
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