1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 22:57:46 +00:00

use $env. instead of let-env (#543)

related to nushell/nushell#9574

Commands used
```nushell
sd --string-mode "let-env " '$env.' **/*
git rst before_v0.60/
```
This commit is contained in:
Antoine Stevan 2023-07-01 10:40:16 +02:00 committed by GitHub
parent c37fd0449f
commit a61256da0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 98 additions and 98 deletions

View file

@ -33,7 +33,7 @@ Next, set up Nushell config, assuming the base16 colors are generated
use ~/.config/nushell/base16.nu
# File containing base16 colors
let-env BASE16_TXT = "/tmp/base16.txt"
$env.BASE16_TXT = "/tmp/base16.txt"
let config = {
color_config: (base16 build-nu-config $env.BASE16_TXT)

View file

@ -67,7 +67,7 @@ export def build-alacritty-config [base_txt: path] {
# | save --raw "~/.config/alacritty/alacritty_colors.yml"
let conf = ($base16 | apply-base16-mustache $template)
let-env ALACRITTY_CONFIG = $conf
$env.ALACRITTY_CONFIG = $conf
nu -c "$nu.env.ALACRITTY_CONFIG | save --raw '~/.config/alacritty/alacritty_colors.yml'"
}