From 9623a255c4319a9dfa3681f7ab2fc579b1132b7c Mon Sep 17 00:00:00 2001 From: Pirmin Kalberer Date: Thu, 19 Sep 2019 23:10:29 +0200 Subject: [PATCH] Include history path in env command --- src/cli.rs | 2 +- src/commands/env.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index ef809ecc1..d0c70876f 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -212,7 +212,7 @@ fn load_plugins(context: &mut Context) -> Result<(), ShellError> { Ok(()) } -struct History; +pub struct History; impl History { pub fn path() -> PathBuf { diff --git a/src/commands/env.rs b/src/commands/env.rs index 9a98164ef..c0af78555 100644 --- a/src/commands/env.rs +++ b/src/commands/env.rs @@ -1,3 +1,4 @@ +use crate::cli::History; use crate::data::config; use crate::data::{Dictionary, Value}; use crate::errors::ShellError; @@ -45,6 +46,9 @@ pub fn get_environment(tag: Tag) -> Result, Box