mirror of
https://github.com/ajeetdsouza/zoxide.git
synced 2025-12-23 07:59:13 +00:00
Update zoxide to support Fish 4.1.x (#1046)
Some checks are pending
ci / ubuntu-latest (push) Waiting to run
release / aarch64-apple-darwin (push) Waiting to run
release / x86_64-apple-darwin (push) Waiting to run
release / aarch64-unknown-linux-musl (push) Waiting to run
release / armv7-unknown-linux-musleabihf (push) Waiting to run
release / i686-unknown-linux-musl (push) Waiting to run
release / x86_64-unknown-linux-musl (push) Waiting to run
release / aarch64-linux-android (push) Waiting to run
release / arm-unknown-linux-musleabihf (push) Waiting to run
release / armv7-linux-androideabi (push) Waiting to run
release / aarch64-pc-windows-msvc (push) Waiting to run
release / x86_64-pc-windows-msvc (push) Waiting to run
Some checks are pending
ci / ubuntu-latest (push) Waiting to run
release / aarch64-apple-darwin (push) Waiting to run
release / x86_64-apple-darwin (push) Waiting to run
release / aarch64-unknown-linux-musl (push) Waiting to run
release / armv7-unknown-linux-musleabihf (push) Waiting to run
release / i686-unknown-linux-musl (push) Waiting to run
release / x86_64-unknown-linux-musl (push) Waiting to run
release / aarch64-linux-android (push) Waiting to run
release / arm-unknown-linux-musleabihf (push) Waiting to run
release / armv7-linux-androideabi (push) Waiting to run
release / aarch64-pc-windows-msvc (push) Waiting to run
release / x86_64-pc-windows-msvc (push) Waiting to run
This commit is contained in:
parent
9e82a6d127
commit
ecf72c9cfd
1 changed files with 5 additions and 1 deletions
|
|
@ -19,7 +19,11 @@ 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\s' 'function __zoxide_cd_internal ' <$__fish_data_dir/functions/cd.fish | source
|
||||
if status list-files functions/cd.fish &>/dev/null
|
||||
status get-file functions/cd.fish | string replace --regex -- '^function cd\s' 'function __zoxide_cd_internal ' | source
|
||||
else
|
||||
string replace --regex -- '^function cd\s' 'function __zoxide_cd_internal ' <$__fish_data_dir/functions/cd.fish | source
|
||||
end
|
||||
end
|
||||
|
||||
# cd + custom logic based on the value of _ZO_ECHO.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue