Skip to content

Latest commit

 

History

History
57 lines (35 loc) · 2.62 KB

README.md

File metadata and controls

57 lines (35 loc) · 2.62 KB

zoxide.fish

Tab completion and initialization for zoxide in fish shell.

Zoxide is a smarter cd command and can be used as a direct replacement for cd in the shell. Once sourced by this plugin it provides the z command to navigate between directories, which also replaces the default cd command.

By default, tab completion for z does first complete directories and then zoxide queries, if no directories match the given string.

zi may be used for interactive selection of recently visited directories.

After installation the cd command will be aliased to z by default.

In case this is not desired _zoxide_uninstall may be called in config.fish after the plugin was initialized to restore the old cd and keep z as a separate function.

Requirements

This plugin requires that zoxide is installed and in the path.

On Ubuntu and other Debian systems, zoxide may be installed with apt:

sudo apt install zoxide

Versions

Because zoxide changes the the init script based on the version, and especially because the apt version of zoxide is still very old, this plugin does not source zoxide init fish. It instead provides modified copies of the required functions from zoxide version 0.8.1 with custom tab completion.

This plugin was written for fish version 3.5.0, there is no guarantee that it will work for older versions of fish.

Installation

Install with Fisher:

fisher install icezyclon/zoxide.fish 

The default behavior for tab completion may change. To get the same stable version of the behavior install from a certain tag instead, e.g.

fisher install icezyclon/[email protected]

Related Plugins

License

MIT