From c3581434cb6cd742ee65e5b4bb237b2dd56d102c Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Mon, 24 Aug 2026 15:51:48 +0200 Subject: [PATCH] fix: remplacement fasd (EOL) par zoxide --- packages.nix | 2 +- programs/zsh.nix | 26 +++++++++++++++----------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/packages.nix b/packages.nix index bcebf1d..ce1169f 100644 --- a/packages.nix +++ b/packages.nix @@ -63,7 +63,7 @@ in sakura tmux - fasd + zoxide ripgrep tree ncdu diff --git a/programs/zsh.nix b/programs/zsh.nix index 94b1707..c22fac9 100644 --- a/programs/zsh.nix +++ b/programs/zsh.nix @@ -7,6 +7,12 @@ enableZshIntegration = true; }; + # Remplace fasd (retiré de nixpkgs, archivé upstream) + programs.zoxide = { + enable = true; + enableZshIntegration = true; + }; + programs.zsh = { enable = true; autosuggestion = { @@ -24,7 +30,6 @@ theme = "robbyrussell"; plugins = [ "docker" - "fasd" "git" "httpie" "pass" @@ -60,8 +65,6 @@ CHROME_PATH=$(which google-chrome) pnpm dlx lighthouse $1 --view } - unalias v - # see https://github.com/cantino/mcfly export MCFLY_FUZZY=true eval "$(mcfly init zsh)" @@ -114,14 +117,15 @@ }; shellAliases = { - s = "fasd -si"; # show / search / select - d = "fasd -d"; # directory - f = "fasd -f"; # file - sd = "fasd -sid"; # interactive directory selection - sf = "fasd -sif"; # interactive file selection - z = "fasd_cd -d"; # cd, same functionality as j in autojump - j = "fasd_cd -d"; # cd, same functionality as j in autojump - zz = "fasd_cd -d -i"; # cd with interactive selection + # `z` et `zi` viennent de zoxide, les alias ci-dessous gardent les + # raccourcis hérités de fasd (retiré de nixpkgs, archivé upstream) + d = "zoxide query --list"; # directory + j = "z"; # cd, same functionality as j in autojump + sd = "zi"; # interactive directory selection + zz = "zi"; # cd with interactive selection + s = "fzf"; # show / search / select + f = "fzf"; # file + sf = "fzf"; # interactive file selection dc = "docker compose"; dcr = "docker compose run --rm";