1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 11:07:44 +00:00

rebuild: make nu commandline a single line

This commit is contained in:
RGBCube 2025-07-12 14:45:12 +03:00
parent cf23682ea0
commit 1cdd201b04
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -123,22 +123,16 @@ def darwin-shadow-xcode-popup [] {
def darwin-set-zshrc [] {
print "setting zshrc..."
let nu_command = $"
let usr_bin_index = $env.PATH
| enumerate
| where item == /usr/bin
| get 0.index
let nu_command = $"let usr_bin_index = $env.PATH
| enumerate
| where item == /usr/bin
| get 0.index;
$env.PATH = $env.PATH | insert $usr_bin_index ($shadow_path | path expand)
$env.PATH = $env.PATH | insert $usr_bin_index ($shadow_path | path expand);
$env.SHELL = which nu | get 0.path
"
$env.SHELL = which nu | get 0.path" | str replace --all "\n" ""
let zshrc = $"
exec nu --execute '
($nu_command)
'
"
let zshrc = $"exec nu --execute '($nu_command)'"
$zshrc | save --force ~/.zshrc
}