Skip to content

Commit 524c005

Browse files
committed
feat(config): xs-addr will now default to ~/.config/cross.stream/XS_ADDR if present
1 parent b030b37 commit 524c005

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xs.nu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def conditional-pipe [
2121
}
2222

2323
export def xs-addr [] {
24-
$env | get XS_ADDR? | or-else { "./store" }
24+
$env | get XS_ADDR? | or-else { try { open ~/.config/cross.stream/XS_ADDR } } | or-else { "./store" }
2525
}
2626

2727
export def xs-context-collect [] {
@@ -225,4 +225,4 @@ export def .import [path: string] {
225225
open ($path | path join "frames.jsonl") | lines | each {
226226
from json | default "0000000000000000000000000" context_id | to json -r | xs import (xs-addr)
227227
}
228-
}
228+
}

0 commit comments

Comments
 (0)