Tmux : Rename tn to tnw.
This commit is contained in:
parent
c78ca65672
commit
5a490bb555
|
@ -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##*/}"
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Reference in a new issue