Skip to content

blmhemu/zoxide.fish

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡️🐟 zoxide.fish

Fish plugin for zoxide.

Advantages over plain zoxide init fish | source:

  • Faster shell startup by AOT initialization
  • Managed as a plugin, can be installed or disabled via plugin managers

Installation

  • plug.fish

    plug install kidonng/zoxide.fish
  • Fisher

    fisher install kidonng/zoxide.fish

Config

zoxide.fish is configured via fish variables instead of zoxide flags.

$zoxide_cmd controls aliases prefix (default: z)

  • Use a different prefix: set --universal zoxide_cmd j (same as zoxide init --cmd j)
  • Disable predefined aliases: set --universal zoxide_cmd (same as zoxide init --no-aliases)

$zoxide_hook controls score increment

zoxide zoxide.fish
zoxide init --hook none set --universal zoxide_hook
zoxide init --hook prompt set --universal zoxide_hook --on-event fish_prompt
zoxide init --hook pwd set --universal zoxide_hook --on-variable PWD (default)

Thanks to the flexibility of zoxide.fish, you can define custom hooks that is not available via zoxide init (e.g. set --universal zoxide_hook --on-event fish_postexec).

Environment variables

zoxide.fish also respects a few environment variables that are used by zoxide:

  • $_ZO_ECHO: When set to 1 (set --universal _ZO_ECHO 1), zoxide.fish prints the matched directory before navigating to it.
  • $_ZO_RESOLVE_SYMLINKS: When set to 1 (set --universal _ZO_RESOLVE_SYMLINKS 1), zoxide.fish will resolve symlinks before adding directories to the database.

About

⚡️🐟 Fish plugin for zoxide

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%