Tmux : Rename tn to tnw.

This commit is contained in:
Dmitry Voronin 2024-01-07 22:40:11 +03:00
parent 26050f1578
commit fd997abfe0
2 changed files with 5 additions and 5 deletions

View file

@ -28,7 +28,7 @@ function tl() {
tmux list-sessions
}
# Rename current session. Uses current dir name by default.
# Assign name to session. Uses current dir name by default.
# Usage: tns [NAME]
function tns() {
local name="${1}"
@ -39,8 +39,8 @@ function tns() {
}
# Assign name to window. Uses current dir name by default.
# Usage: tn [NAME]
function tn() {
# Usage: tnw [NAME]
function tnw() {
local name="${1}"
[[ "${name}" = "" ]] && name="${PWD##*/}"

View file

@ -339,8 +339,8 @@ Command|Description
`td`|Detach from running session.
`tda`|Detach all other tmux clients.
`tl`|List running sessions.
`tns [NAME]`|Rename current session. Uses current dir name by default.
`tn [NAME]`|Assign name to window. Uses current dir name by default.
`tns [NAME]`|Assign name to session. Uses current dir name by default.
`tnw [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.