diff --git a/.config/bash/module/Tmux.sh b/.config/bash/module/Tmux.sh index 429d98a..6cef008 100644 --- a/.config/bash/module/Tmux.sh +++ b/.config/bash/module/Tmux.sh @@ -29,8 +29,8 @@ function tl() { } # Rename current session. Uses current dir name by default. -# Usage: trn [NAME] -function trn() { +# Usage: tns [NAME] +function tns() { local name="${1}" [[ "${name}" = "" ]] && name="${PWD##*/}" diff --git a/.doc/Bash.md b/.doc/Bash.md index fe011bf..08cc043 100644 --- a/.doc/Bash.md +++ b/.doc/Bash.md @@ -339,7 +339,7 @@ Command|Description `td`|Detach from running session. `tda`|Detach all other tmux clients. `tl`|List running sessions. -`trn [NAME]`|Rename current session. Uses current dir name by default. +`tns [NAME]`|Rename current session. Uses current dir name by default. `tn [NAME]`|Assign name to window. Uses current dir name by default. `tk [NAME]`|Kill specified session. By default it kills `main` session. `tka`|Kill all sessions.