diff --git a/src/command/session.rs b/src/command/session.rs index f030db6..86ae726 100644 --- a/src/command/session.rs +++ b/src/command/session.rs @@ -51,8 +51,8 @@ pub fn switch(state: &mut State) { .output().ok(); } -pub fn which(state: State) { - state.session_enforce("which"); +pub fn title(state: State) { + state.session_enforce("title"); if let Some(title) = state.title { println!("{title}"); } } diff --git a/src/help.rs b/src/help.rs index d789deb..7692464 100644 --- a/src/help.rs +++ b/src/help.rs @@ -25,7 +25,7 @@ commands: path print session path (session) switch switch to another session (session) - which print session title (session) + title print session title (session) Use 'remux help ' to see detailed help text for each command. @@ -102,7 +102,7 @@ flags: -n, --nest Create the session inside another session. -t, --target Sets the target directory for the new session."), - Some("root") + Some("p" | "path") => println!("remux path Print the session path (#{{session_path}}) to standard output. diff --git a/src/main.rs b/src/main.rs index 14f8f04..9ff9e28 100644 --- a/src/main.rs +++ b/src/main.rs @@ -61,8 +61,8 @@ fn main() { Some("s" | "switch") => command::session::switch(&mut state), - Some("w" | "which" | "title") - => command::session::which(state), + Some("t" | "title" | "which") + => command::session::title(state), _ => error::no_subcommand(target.unwrap())