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.
|
# 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##*/}"
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Reference in a new issue