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 9e82a6d commit ecf72c9Copy full SHA for ecf72c9
templates/fish.txt
@@ -19,7 +19,11 @@ end
19
# A copy of fish's internal cd function. This makes it possible to use
20
# `alias cd=z` without causing an infinite loop.
21
if ! builtin functions --query __zoxide_cd_internal
22
- string replace --regex -- '^function cd\s' 'function __zoxide_cd_internal ' <$__fish_data_dir/functions/cd.fish | source
+ if status list-files functions/cd.fish &>/dev/null
23
+ status get-file functions/cd.fish | string replace --regex -- '^function cd\s' 'function __zoxide_cd_internal ' | source
24
+ else
25
+ string replace --regex -- '^function cd\s' 'function __zoxide_cd_internal ' <$__fish_data_dir/functions/cd.fish | source
26
+ end
27
end
28
29
# cd + custom logic based on the value of _ZO_ECHO.
0 commit comments