starship: re-add ion integration

which was apparently mistakenly removed in commit 7ae7250
This commit is contained in:
Marcel Transier 2022-12-27 13:00:56 +01:00 committed by Robert Helgesson
parent 646ac0ad17
commit a62e4c88d7
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -124,6 +124,12 @@ in {
end
'';
programs.ion.initExtra = mkIf cfg.enableIonIntegration ''
if test $TERM != "dumb" && not exists -s INSIDE_EMACS || test $INSIDE_EMACS = "vterm"
eval $(${starshipCmd} init ion)
end
'';
programs.nushell = mkIf cfg.enableNushellIntegration {
# Unfortunately nushell doesn't allow conditionally sourcing nor
# conditionally setting (global) environment variables, which is why the