Fix trash functionality (#3146)

For now the trash doesn't work because the trash-support flag isn't enabled in nu-engine
crate, so make it work by adding this flag.

Signed-off-by: Tw <wei.tan@intel.com>

Co-authored-by: Tw <wei.tan@intel.com>
This commit is contained in:
Tw
2021-03-09 17:34:14 +08:00
committed by GitHub
parent 49a9107e0f
commit 1dc7e00d20
4 changed files with 5 additions and 2 deletions

View File

@ -609,7 +609,7 @@ impl Shell for FilesystemShell {
let result;
#[cfg(feature = "trash-support")]
{
let rm_always_trash = config::config(Tag::unknown())?
let rm_always_trash = nu_data::config::config(Tag::unknown())?
.get("rm_always_trash")
.map(|val| val.is_true())
.unwrap_or(false);