Unverified Commit 696ede1b authored by Daniel Nagy's avatar Daniel Nagy
Browse files

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
parent 6ce2e9cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
    '';