diff --git a/templates/fish.txt b/templates/fish.txt index 8b349dc..76540ba 100644 --- a/templates/fish.txt +++ b/templates/fish.txt @@ -19,7 +19,7 @@ end # A copy of fish's internal cd function. This makes it possible to use # `alias cd=z` without causing an infinite loop. if ! builtin functions --query __zoxide_cd_internal - string replace --regex -- '^function cd' 'function __zoxide_z_internal' <$__fish_data_dir/functions/cd.fish | source + string replace --regex -- '^function cd\s' 'function __zoxide_cd_internal ' <$__fish_data_dir/functions/cd.fish | source end # cd + custom logic based on the value of _ZO_ECHO.