Tmux : Rename trn to tns (tmux name session).

This commit is contained in:
Dmitry Voronin 2024-01-06 02:17:46 +03:00
parent 9e9fcf02f3
commit ac1c21b98f
2 changed files with 3 additions and 3 deletions

View file

@ -29,8 +29,8 @@ function tl() {
} }
# Rename current session. Uses current dir name by default. # Rename current session. Uses current dir name by default.
# Usage: trn [NAME] # Usage: tns [NAME]
function trn() { function tns() {
local name="${1}" local name="${1}"
[[ "${name}" = "" ]] && name="${PWD##*/}" [[ "${name}" = "" ]] && name="${PWD##*/}"

View file

@ -339,7 +339,7 @@ Command|Description
`td`|Detach from running session. `td`|Detach from running session.
`tda`|Detach all other tmux clients. `tda`|Detach all other tmux clients.
`tl`|List running sessions. `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. `tn [NAME]`|Assign name to window. Uses current dir name by default.
`tk [NAME]`|Kill specified session. By default it kills `main` session. `tk [NAME]`|Kill specified session. By default it kills `main` session.
`tka`|Kill all sessions. `tka`|Kill all sessions.