mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-06 09:01:04 +01:00
oh-my-posh: fix nushell with v26.0.0 (#7342)
This commit is contained in:
parent
76d0c31fce
commit
2b3bb17e87
2 changed files with 22 additions and 7 deletions
|
|
@ -82,10 +82,15 @@ in
|
|||
|
||||
programs.nushell = mkIf cfg.enableNushellIntegration {
|
||||
extraConfig = ''
|
||||
source ${
|
||||
pkgs.runCommand "oh-my-posh-nushell-config.nu" { } ''
|
||||
${lib.getExe cfg.package} init nu ${configArgument} --print >> "$out"
|
||||
''
|
||||
${
|
||||
if lib.versionAtLeast (lib.versions.major cfg.package.version) "26" then
|
||||
"${lib.getExe cfg.package} init nu ${configArgument}"
|
||||
else
|
||||
''source ${
|
||||
pkgs.runCommand "oh-my-posh-nushell-config.nu" { } ''
|
||||
${lib.getExe cfg.package} init nu ${configArgument} --print >> "$out"
|
||||
''
|
||||
}''
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue