Add zoxide integration for smart directory navigation

- Add zoxide package to flake.nix
- Enable zoxide with zsh integration in modules/zsh.nix
- Configure zoxide to replace cd command with smart frecency-based navigation
- Add zi alias for interactive directory selection with fzf

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Yan Lin 2025-07-30 00:07:48 +02:00
parent a7164a0ff3
commit 73d425d2bf
2 changed files with 12 additions and 0 deletions

View file

@ -74,6 +74,7 @@
git-credential-oauth
rsync
gnumake
zoxide
];
fonts.fontconfig.enable = true;

View file

@ -36,6 +36,9 @@ in
# Modern CLI tools
ftp = "termscp";
# Zoxide aliases
zi = "z -i"; # Interactive selection with fzf
# Nix helpers
hm = "home-manager";
hms = "home-manager switch --flake ~/.config/nix#yanlin";
@ -112,6 +115,9 @@ in
ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(vi-add-eol)
ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(vi-add-next)
ZSH_AUTOSUGGEST_ACCEPT_WIDGETS=(end-of-line vi-end-of-line vi-add-eol)
# Zoxide configuration - replace cd with z for smart directory jumping
eval "$(zoxide init zsh --cmd cd)"
'';
};
@ -130,6 +136,11 @@ in
enableZshIntegration = true;
};
programs.zoxide = {
enable = true;
enableZshIntegration = true;
};
# Manage Powerlevel10k configuration
home.file.".p10k.zsh".source = ../config/p10k.zsh;