summaryrefslogtreecommitdiffstats
path: root/zellij-client/src
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-05-19 21:17:21 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-22 22:19:50 +0530
commit2487256664d4142ee1906f0058cf7e8063cb6e10 (patch)
treed295a93da8ba4657194623f1e1ef2ab4d0686a03 /zellij-client/src
parentd231d28d7cdf7df1f44268627f5630edb19b21a0 (diff)
Mark current session in the output of list-sessions
Diffstat (limited to 'zellij-client/src')
-rw-r--r--zellij-client/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs
index 4ff377063..8f192c388 100644
--- a/zellij-client/src/lib.rs
+++ b/zellij-client/src/lib.rs
@@ -17,7 +17,7 @@ use crate::{
use zellij_utils::cli::CliArgs;
use zellij_utils::{
channels::{SenderType, SenderWithContext, SyncChannelWithContext},
- consts::ZELLIJ_IPC_PIPE,
+ consts::{SESSION_NAME, ZELLIJ_IPC_PIPE},
errors::{ClientContext, ContextType, ErrorInstruction},
input::config::Config,
input::options::Options,
@@ -95,6 +95,7 @@ pub fn start_client(mut os_input: Box<dyn ClientOsApi>, opts: CliArgs, config: C
.write(clear_client_terminal_attributes.as_bytes())
.unwrap();
std::env::set_var(&"ZELLIJ", "0");
+ std::env::set_var(&"ZELLIJ_SESSION_NAME", &*SESSION_NAME);
#[cfg(not(any(feature = "test", test)))]
spawn_server(&*ZELLIJ_IPC_PIPE).unwrap();