From 696ede1b432f77abf54f9c1a79663a3e5cc58cb7 Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Sat, 22 Feb 2025 13:00:00 +0100 Subject: [PATCH] nixos/starship: skip one program invocation on each shell init The code that is being evaled without the `--print-full-init` flag is this: ``` eval -- "$(/nix/store/...-starship-1.24.2/bin/starship init bash --print-full-init)" ``` We can skip one program invocation and directly call `starship init bash --print-full-init`. This is a replication of my other PR in home-manager: - https://github.com/nix-community/home-manager/pull/2862 --- nixos/modules/programs/starship.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/programs/starship.nix b/nixos/modules/programs/starship.nix index a8941ce7a18f..1a10b0a8780f 100644 --- a/nixos/modules/programs/starship.nix +++ b/nixos/modules/programs/starship.nix @@ -118,7 +118,7 @@ in if [[ ! -f "$HOME/.config/starship.toml" ]]; then export STARSHIP_CONFIG=${settingsFile} fi - eval "$(${cfg.package}/bin/starship init bash)" + eval "$(${cfg.package}/bin/starship init bash --print-full-init)" fi '';