mirror of
https://github.com/Hopiu/zoxide.git
synced 2026-04-13 19:40:58 +00:00
fish: use cd from data_dir
This commit is contained in:
parent
1ef6d5b8fc
commit
dc0d039be2
1 changed files with 1 additions and 5 deletions
|
|
@ -19,11 +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
|
||||
if builtin functions --query cd
|
||||
builtin functions --copy cd __zoxide_cd_internal
|
||||
else
|
||||
alias __zoxide_cd_internal='builtin cd'
|
||||
end
|
||||
string replace --regex -- '^function cd' 'function __zoxide_z_internal' <$__fish_data_dir/functions/cd.fish | source
|
||||
end
|
||||
|
||||
# cd + custom logic based on the value of _ZO_ECHO.
|
||||
|
|
|
|||
Loading…
Reference in a new issue