mirror of
https://github.com/nix-community/home-manager
synced 2024-12-02 16:09:46 +01:00
starship: add xonsh integration
This commit is contained in:
parent
b964ab7f39
commit
f222755f44
1 changed files with 9 additions and 0 deletions
|
@ -67,6 +67,10 @@ in {
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableXonshIntegration = mkEnableOption "Xonsh integration" // {
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
|
||||||
enableNushellIntegration = mkEnableOption "Nushell integration" // {
|
enableNushellIntegration = mkEnableOption "Nushell integration" // {
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
@ -117,6 +121,11 @@ in {
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
programs.xonsh.xonshrc = mkIf cfg.enableXonshIntegration ''
|
||||||
|
if $TERM != "dumb":
|
||||||
|
execx($(${starshipCmd} init xonsh))
|
||||||
|
'';
|
||||||
|
|
||||||
programs.nushell = mkIf cfg.enableNushellIntegration {
|
programs.nushell = mkIf cfg.enableNushellIntegration {
|
||||||
# Unfortunately nushell doesn't allow conditionally sourcing nor
|
# Unfortunately nushell doesn't allow conditionally sourcing nor
|
||||||
# conditionally setting (global) environment variables, which is why the
|
# conditionally setting (global) environment variables, which is why the
|
||||||
|
|
Loading…
Reference in a new issue