We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73a00ab commit d45fe5eCopy full SHA for d45fe5e
functions/_tide_pwd.fish
@@ -28,8 +28,10 @@ eval "function _tide_pwd
28
string match -qr \"(?<trunc>\..|.)\" \$dir_section
29
30
set -l glob \$parent_dir/\$trunc*/
31
- set -e glob[(contains -i \$parent_dir/\$dir_section/ \$glob)] # This is faster than inverse string match
32
-
+ set -l indices (contains -i $parent_dir/$dir_section/ $glob)
+ if set -q indices[1]
33
+ set -e glob[$indices]
34
+ end
35
while string match -qr \"^\$parent_dir/\$(string escape --style=regex \$trunc)\" \$glob &&
36
string match -qr \"(?<trunc>\$(string escape --style=regex \$trunc).)\" \$dir_section
37
end
0 commit comments