1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-08-01 12:37:46 +00:00

jc: improve suggestions

This commit is contained in:
RGBCube 2025-07-19 00:57:12 +03:00
parent 874471e1df
commit ab464ce6f1
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
2 changed files with 42 additions and 24 deletions

View file

@ -123,13 +123,8 @@ 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.SHELL = which nu | get 0.path" | str replace --all "\n" ""
let zshrc = $"exec nu --execute '($nu_command)'"