Skip to content

Commit

Permalink
rename $env.XSPWD to $env.XS_ADDR
Browse files Browse the repository at this point in the history
  • Loading branch information
cablehead committed Dec 6, 2024
1 parent e02edab commit 2d840a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ $ use xs.nu *

This will add some `.command` conveniences to your session. The commands default
to working with a `./store` in your current directory. You can customize this by
setting `$env.XSPWD`.
setting `$env.XS_ADDR`.

Appending looks like this:

Expand Down
2 changes: 1 addition & 1 deletion xs.nu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def and-then [ next: closure --else: closure ] {
}

export def store-addr [] {
$env | default "./store" XSPWD | get XSPWD
$env | get XS_ADDR? | ? else { "./store" }
}

# update to use (store-addr) and the xs cli
Expand Down

0 comments on commit 2d840a8

Please sign in to comment.