diff --git a/modules/programs/starship.nix b/modules/programs/starship.nix index f253fa7f..432b3500 100644 --- a/modules/programs/starship.nix +++ b/modules/programs/starship.nix @@ -74,6 +74,10 @@ in { default = true; }; + enableXonshIntegration = mkEnableOption "Xonsh integration" // { + default = true; + }; + enableNushellIntegration = mkEnableOption "Nushell integration" // { default = true; }; @@ -124,6 +128,11 @@ in { end ''; + programs.xonsh.xonshrc = mkIf cfg.enableXonshIntegration '' + if $TERM != "dumb": + execx($(${starshipCmd} init xonsh)) + ''; + programs.nushell = mkIf cfg.enableNushellIntegration { # Unfortunately nushell doesn't allow conditionally sourcing nor # conditionally setting (global) environment variables, which is why the