覆层无法正常使用 #18891
覆层无法正常使用
#18891
Answered by
WindSoilder
Aug 24, 2026
Replies: 2 comments 4 replies
|
You don't need export def foo [] {
"foo"
}
export alias bar = echo "bar"
export-env {
load-env { BAZ: "baz" }
}Because the file itself is already a module |
4 replies
Answer selected by
free-hook
|
"Even though learning Nushell has been a bit of a struggle for me, it's still my favorite project." |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

You don't need
module spamif you save the body intospam.nufile, this should work for you:Because the file itself is already a module