From 8c0b6d86bf35c76c20dbc47dfd988c28192014bf Mon Sep 17 00:00:00 2001 From: wi11-holdsworth <83637728+wi11-holdsworth@users.noreply.github.com> Date: Thu, 7 Aug 2025 13:39:40 +1000 Subject: [PATCH] replace nushell with fish --- hosts/server/configuration.nix | 2 +- modules/home-manager/default.nix | 2 +- .../features/{nushell.nix => fish.nix} | 17 +++++++---------- modules/home-manager/features/zellij.nix | 1 + 4 files changed, 10 insertions(+), 12 deletions(-) rename modules/home-manager/features/{nushell.nix => fish.nix} (68%) diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 61266f3..1a395c4 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -34,7 +34,7 @@ ]; home = "/home/srv"; isNormalUser = true; - shell = pkgs.bash; + shell = pkgs.fish; }; }; diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix index fa41e28..9dae32a 100644 --- a/modules/home-manager/default.nix +++ b/modules/home-manager/default.nix @@ -9,9 +9,9 @@ in bat.enable = lib.mkDefault true; eza.enable = lib.mkDefault true; + fish.enable = lib.mkDefault true; gh.enable = lib.mkDefault true; git.enable = lib.mkDefault true; - nushell.enable = lib.mkDefault true; yazi.enable = lib.mkDefault true; zoxide.enable = lib.mkDefault true; } diff --git a/modules/home-manager/features/nushell.nix b/modules/home-manager/features/fish.nix similarity index 68% rename from modules/home-manager/features/nushell.nix rename to modules/home-manager/features/fish.nix index 820b0ee..d80d2ed 100644 --- a/modules/home-manager/features/nushell.nix +++ b/modules/home-manager/features/fish.nix @@ -1,21 +1,18 @@ { config, lib, ... }: let - feature = "nushell"; + feature = "fish"; in { config = lib.mkIf config.${feature}.enable { - home.shell.enableNushellIntegration = true; - programs.nushell = { + home.shell.enableFishIntegration = true; + programs.fish = { enable = true; - environmentVariables = { - - }; - settings = { - - }; + interactiveShellInit = '' + set fish_greeting + ''; shellAliases = { cat = "bat"; - cd = "zoxide"; + cd = "j"; g = "lazygit"; l = "eza"; la = "eza -a"; diff --git a/modules/home-manager/features/zellij.nix b/modules/home-manager/features/zellij.nix index 7141d04..5313695 100644 --- a/modules/home-manager/features/zellij.nix +++ b/modules/home-manager/features/zellij.nix @@ -13,6 +13,7 @@ in settings = { theme = "catppuccin-mocha"; show_startup_tips = false; + default_shell = "fish"; }; }; };