mirror of
https://github.com/RGBCube/ncc
synced 2025-08-01 12:37:46 +00:00
jc: improve suggestions
This commit is contained in:
parent
874471e1df
commit
ab464ce6f1
2 changed files with 42 additions and 24 deletions
|
@ -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)'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue