all repos — nixfiles @ 4d56526b0a391443b471fa5db6b154fcecbb15ff

System and user configuration, managed by nix and home-manager

fish: switch from nix-your-shell to any-nix-shell
Alan Pearce alan@alanpearce.eu
Mon, 29 Apr 2024 08:07:44 +0200
commit

4d56526b0a391443b471fa5db6b154fcecbb15ff

parent

e0ee29efdea8c63d65cd81ba9a767320e95ee8c1

2 files changed, 2 insertions(+), 5 deletions(-)

jump to
M user/settings/fish.nixuser/settings/fish.nix
@@ -23,7 +23,9 @@ rev = "cafaaabe63c124bf0714f89ec715cfe9ece87fa2";           };
         }
       ];
+    # TODO: pre-generate nix-your-shell
     interactiveShellInit = ''
+      ${pkgs.nix-your-shell}/bin/nix-your-shell fish | source
       bind \es __ghq_repository_search
       # don't bind ctrl-t, it does nice things on macOS/BSD
       set FZF_CTRL_T_COMMAND
M user/settings/nix.nixuser/settings/nix.nix
@@ -10,13 +10,8 @@ imports = [     ../../pin.nix
   ];
   nixpkgs.config = import ../config.nix;
-  # move to system config
-  programs.fish.interactiveShellInit = ''
-    any-nix-shell fish --info-right | source
-  '';
 
   home.packages = with pkgs; [
-    any-nix-shell
     nil
     nix-prefetch-scripts
     nix-init