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
|
|
@ -28,8 +28,18 @@
|
|||
in
|
||||
''
|
||||
assertFileExists "${configFile}"
|
||||
assertFileRegex \
|
||||
"${configFile}" \
|
||||
'source /nix/store/[^/]*-oh-my-posh-nushell-config.nu'
|
||||
${
|
||||
if (lib.versionAtLeast (lib.versions.major config.programs.oh-my-posh.package.version) "26") then
|
||||
''
|
||||
assertFileContains \
|
||||
"${configFile}" \
|
||||
"/bin/oh-my-posh init nu --config"''
|
||||
else
|
||||
|
||||
''
|
||||
assertFileRegex \
|
||||
"${configFile}" \
|
||||
"source /nix/store/[^/]*-oh-my-posh-nushell-config.nu"''
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue