Tmux : Rename trn to tns (tmux name session).
This commit is contained in:
parent
9e9fcf02f3
commit
ac1c21b98f
|
@ -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##*/}"
|
||||
|
|
|
@ -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.
|
||||
|
|
Reference in a new issue