add history session id to $nu (#6585)

* add history session id to $nu

* get nushell to compile

* update test
This commit is contained in:
Darren Schroeder
2022-09-19 09:28:36 -05:00
committed by GitHub
parent d704b05b7a
commit 0b9dd87ca8
8 changed files with 39 additions and 15 deletions

View File

@ -87,6 +87,7 @@ pub struct EngineState {
#[cfg(not(windows))]
sig_quit: Option<Arc<AtomicBool>>,
config_path: HashMap<String, PathBuf>,
pub history_session_id: i64,
}
pub const NU_VARIABLE_ID: usize = 0;
@ -127,6 +128,7 @@ impl EngineState {
#[cfg(not(windows))]
sig_quit: None,
config_path: HashMap::new(),
history_session_id: 0,
}
}