diff --git a/modules/programs/starship.nix b/modules/programs/starship.nix index 9ccff7fcf..607cd1567 100644 --- a/modules/programs/starship.nix +++ b/modules/programs/starship.nix @@ -67,6 +67,10 @@ in { default = true; }; + enableXonshIntegration = mkEnableOption "Xonsh integration" // { + default = true; + }; + enableNushellIntegration = mkEnableOption "Nushell integration" // { default = true; }; @@ -117,6 +121,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