Get current script location in Nu shell

Viewed 209

In bash you can use $0 variable to get the location of the current script. How I do the same in Nu? echo $nu doesn't seem to have anything I can use.

2 Answers

I don't think there's a way to do this yet. I was playing with history | last but it's one off, as you'd expect.

($nu.config-path | path dirname )

Related