summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-09-08 22:02:29 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-09-08 22:02:29 +0000
commit39668f3cc63395b5572e781e1509f1fda8ed28a8 (patch)
tree43fac362bfec1658b12d774ebb3794a169475d1b /usr.bin/tmux/tmux.1
parent75c27e06b53e680e6c27c18b70bf476861297a71 (diff)
Add -n and -p flags to switch-client to move to the next and previous
session (yes, it doesn't match window/pane, but so what, nor does switch-client). Based on a diff long ago from "edsouza".
Diffstat (limited to 'usr.bin/tmux/tmux.1')
-rw-r--r--usr.bin/tmux/tmux.110
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1
index 81a5ef6cd27..743da55c6df 100644
--- a/usr.bin/tmux/tmux.1
+++ b/usr.bin/tmux/tmux.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tmux.1,v 1.182 2010/07/15 21:54:20 jmc Exp $
+.\" $OpenBSD: tmux.1,v 1.183 2010/09/08 22:02:28 nicm Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
.\"
@@ -14,7 +14,7 @@
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: July 15 2010 $
+.Dd $Mdocdate: September 8 2010 $
.Dt TMUX 1
.Os
.Sh NAME
@@ -660,6 +660,7 @@ Suspend a client by sending
.Dv SIGTSTP
(tty stop).
.It Xo Ic switch-client
+.Op Fl np
.Op Fl c Ar target-client
.Op Fl t Ar target-session
.Xc
@@ -668,6 +669,11 @@ Switch the current session for client
.Ar target-client
to
.Ar target-session .
+If
+.Fl n
+or
+.Fl p
+is used, the client is moved to the next or previous session respectively.
.El
.Sh WINDOWS AND PANES
A