updated README and help text
This commit is contained in:
parent
ace9627b79
commit
0232a9c650
3 changed files with 13 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "remux"
|
name = "remux"
|
||||||
version = "0.3.2"
|
version = "0.3.3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = [ "Valerie Wolfe <sleeplessval@gmail.com>" ]
|
authors = [ "Valerie Wolfe <sleeplessval@gmail.com>" ]
|
||||||
description = "A friendly command shortener for tmux"
|
description = "A friendly command shortener for tmux"
|
||||||
|
|
|
@ -47,8 +47,7 @@ tmux swi -t foo
|
||||||
rmux s foo
|
rmux s foo
|
||||||
|
|
||||||
# cd to session path
|
# cd to session path
|
||||||
tmux run 'printf "#{session_path}" > /tmp/tmux_path'
|
cd `tmux display-mes -p "#{session_path}"`
|
||||||
cd `cat /tmp/tmux_path`
|
|
||||||
cd `rmux p`
|
cd `rmux p`
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
11
src/help.rs
11
src/help.rs
|
@ -25,6 +25,7 @@ commands:
|
||||||
|
|
||||||
path print session path (session)
|
path print session path (session)
|
||||||
switch switch to another session (session)
|
switch switch to another session (session)
|
||||||
|
which print session title (session)
|
||||||
|
|
||||||
Use 'remux help <command>' to see detailed help text for each command.
|
Use 'remux help <command>' to see detailed help text for each command.
|
||||||
|
|
||||||
|
@ -126,6 +127,16 @@ flags:
|
||||||
-r, --read-only Attach the target session as read-only."),
|
-r, --read-only Attach the target session as read-only."),
|
||||||
|
|
||||||
|
|
||||||
|
Some("w" | "which" | "title")
|
||||||
|
=>
|
||||||
|
println!("remux which
|
||||||
|
Print the title of the current session.
|
||||||
|
|
||||||
|
usage: remux which
|
||||||
|
remux w
|
||||||
|
remux title"),
|
||||||
|
|
||||||
|
|
||||||
// TOPIC HELP
|
// TOPIC HELP
|
||||||
|
|
||||||
Some("env" | "vars")
|
Some("env" | "vars")
|
||||||
|
|
Loading…
Reference in a new issue