diff --git a/crates/nu-std/src/lib.rs b/crates/nu-std/src/lib.rs index 619c1cfa71..5c1e9237dd 100644 --- a/crates/nu-std/src/lib.rs +++ b/crates/nu-std/src/lib.rs @@ -59,6 +59,7 @@ use std dirs [ p dexit ] +use std pwd "# ); diff --git a/crates/nu-std/std/mod.nu b/crates/nu-std/std/mod.nu index 3ea85d2465..b800adf11e 100644 --- a/crates/nu-std/std/mod.nu +++ b/crates/nu-std/std/mod.nu @@ -286,3 +286,8 @@ It's been this long since (ansi green)Nushell(ansi reset)'s first commit: Startup Time: ($nu.startup-time) " } + +# Return the current working directory +export def pwd [] { + $env.PWD +} \ No newline at end of file