From c5cc0f6dbb3ff2b82aa37deb33a2c37832f3a910 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Thu, 13 Apr 2023 14:18:14 +0200 Subject: [PATCH] starship: They fixed it for nushell --- home-manager/modules/nushell/default.nix | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/home-manager/modules/nushell/default.nix b/home-manager/modules/nushell/default.nix index da0aa8c..865bc68 100644 --- a/home-manager/modules/nushell/default.nix +++ b/home-manager/modules/nushell/default.nix @@ -3,9 +3,6 @@ with lib; let cfg = config.eboskma.programs.nushell; - # TODO: Remove when starship is updated - starshipCmd = "${config.home.profileDirectory}/bin/starship"; - nushell_plugin_formats = pkgs.callPackage ./plugin-formats.nix { inherit (pkgs) stdenv lib rustPlatform; inherit (pkgs.darwin.apple_sdk_11_0.frameworks) IOKit CoreFoundation; @@ -21,20 +18,6 @@ in package = pkgs.nushell.override { additionalFeatures = p: p ++ [ "dataframe" ]; }; configFile.source = ./config.nu; envFile.source = ./env.nu; - - # TODO: Remove when starship is updated to the new nu 0.78 syntax - extraEnv = '' - let starship_cache = "${config.xdg.cacheHome}/starship" - if not ($starship_cache | path exists) { - mkdir $starship_cache - } - ${starshipCmd} init nu | str replace --string 'PROMPT_COMMAND = {' 'PROMPT_COMMAND = { ||' | str replace --string 'PROMPT_COMMAND_RIGHT = {' 'PROMPT_COMMAND_RIGHT = { ||' | save --force ${config.xdg.cacheHome}/starship/init.nu - ''; - - extraConfig = '' - source ${config.xdg.cacheHome}/starship/init.nu - ''; - }; home.packages = with pkgs; [