diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-07-05 17:05:39 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-07-05 17:05:39 -0300 |
commit | 3913586f678437d6de80bc96c8eea0e1e69a51ac (patch) | |
tree | 1d15289894a456229dc7416863b1ad530f467c43 /.config/fish/functions/_tide_parent_dirs.fish | |
parent | ac3630acff3a49da55913f4e66d0af4aacdebec8 (diff) |
Updated tide
Diffstat (limited to '.config/fish/functions/_tide_parent_dirs.fish')
-rw-r--r-- | .config/fish/functions/_tide_parent_dirs.fish | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/fish/functions/_tide_parent_dirs.fish b/.config/fish/functions/_tide_parent_dirs.fish new file mode 100644 index 00000000..9f31b043 --- /dev/null +++ b/.config/fish/functions/_tide_parent_dirs.fish @@ -0,0 +1,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 |