Zoxide: Difference between revisions

From NixOS Wiki
imported from old wiki
 
Klinger (talk | contribs)
m CD may be misinterpreted as Compact Disk.
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Zoxide}}
{{DISPLAYTITLE:Zoxide}}
[https://github.com/ajeetdsouza/zoxide Zoxide] is a smarter CD command that supports all major shells.
[https://github.com/ajeetdsouza/zoxide Zoxide] is a smarter ''cd (''change directory) command that supports all major shells.


== Installation ==
== Installation ==
Line 36: Line 36:
];
];
</syntaxhighlight>
</syntaxhighlight>
[[Category:Shell]]

Latest revision as of 21:10, 25 June 2024

Zoxide is a smarter cd (change directory) command that supports all major shells.

Installation

A basic user-specific installation with Home Manager may look like this:

home-manager.users.myuser = {
  programs.zoxide.enable = true;
};

Change myuser to the username of the user you want to configure.

Shell Integration

You can choose which shell integrations to enable with the enable*Integration options. By default all are enabled.

programs.zoxide.enableBashIntegration= true;
programs.zoxide.enableFishIntegration= true;
programs.zoxide.enableNushellIntegration = true;
programs.zoxide.enableZshIntegration = true;

After adding Zoxide, you will have to restart your shell to gain access to the z command.

Extra Options

You can pass extra flags to Zoxide using programs.zoxide.options as follows:

programs.zoxide.options = [
  "--cmd cd"
];