Add pwd command to stdlib (#9607)

Closes #9601
This commit is contained in:
Hofer-Julian 2023-07-04 19:25:01 +02:00 committed by GitHub
parent 1bdec1cbb6
commit 65a163357d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -59,6 +59,7 @@ use std dirs [
p p
dexit dexit
] ]
use std pwd
"# "#
); );

View file

@ -286,3 +286,8 @@ It's been this long since (ansi green)Nushell(ansi reset)'s first commit:
Startup Time: ($nu.startup-time) Startup Time: ($nu.startup-time)
" "
} }
# Return the current working directory
export def pwd [] {
$env.PWD
}