diff --git a/modules/programs/autojump.nix b/modules/programs/autojump.nix index db3bdaf593c0..e8bf6b4375cd 100644 --- a/modules/programs/autojump.nix +++ b/modules/programs/autojump.nix @@ -49,7 +49,7 @@ in { . ${package}/share/autojump/autojump.zsh ''; - programs.fish.promptInit = mkIf cfg.enableFishIntegration '' + programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration '' . ${package}/share/autojump/autojump.fish ''; }; diff --git a/modules/programs/fish.nix b/modules/programs/fish.nix index f381960f6eb0..1b594f408d1f 100644 --- a/modules/programs/fish.nix +++ b/modules/programs/fish.nix @@ -146,6 +146,16 @@ let (mapAttrsToList (k: v: "alias ${k} ${escapeShellArg v}") cfg.shellAliases); in { + imports = [ + (mkRemovedOptionModule [ "programs" "fish" "promptInit" ] '' + Prompt is now configured through the + + programs.fish.interactiveShellInit + + option. Please change to use that instead. + '') + ]; + options = { programs.fish = { enable = mkEnableOption "fish, the friendly interactive shell"; @@ -214,14 +224,6 @@ in { initialisation. ''; }; - - promptInit = mkOption { - type = types.lines; - default = ""; - description = '' - Shell script code used to initialise fish prompt. - ''; - }; }; programs.fish.plugins = mkOption { @@ -382,9 +384,6 @@ in { # Aliases ${aliasesStr} - # Prompt initialisation - ${cfg.promptInit} - # Interactive shell intialisation ${cfg.interactiveShellInit} diff --git a/modules/programs/starship.nix b/modules/programs/starship.nix index 33db8e6d6c68..d9ff51b60933 100644 --- a/modules/programs/starship.nix +++ b/modules/programs/starship.nix @@ -100,7 +100,7 @@ in { fi ''; - programs.fish.promptInit = mkIf cfg.enableFishIntegration '' + programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration '' if test "$TERM" != "dumb" -a \( -z "$INSIDE_EMACS" -o "$INSIDE_EMACS" = "vterm" \) eval (${cfg.package}/bin/starship init fish) end