summaryrefslogtreecommitdiff
path: root/.config/fish/functions/_tide_parent_dirs.fish
blob: 9f31b0436acbaa129f9ad25f5b84d8b08a0a555a (plain)
1
2
3
4
5
6
7
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