aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-09-23 12:03:30 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-09-23 12:03:30 +0000
commit9200a0be7a515cd04c1a05d120002c73932cbf98 (patch)
tree6e82962815963a9962c1029d7d97898fb0dae98b /tmux.1
parent18ea820cb0f1e7d9936c89abf15130e40efc956b (diff)
downloadrtmux-9200a0be7a515cd04c1a05d120002c73932cbf98.tar.gz
rtmux-9200a0be7a515cd04c1a05d120002c73932cbf98.tar.bz2
rtmux-9200a0be7a515cd04c1a05d120002c73932cbf98.zip
Support -c like sh(1) to execute a command, useful when tmux is a login
shell. Suggested by halex@. This includes another protocol version increase (the last for now) so again restart the tmux server before upgrading.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.110
1 files changed, 10 insertions, 0 deletions
diff --git a/tmux.1 b/tmux.1
index 7155dcd2..542663d7 100644
--- a/tmux.1
+++ b/tmux.1
@@ -24,6 +24,7 @@
.Nm tmux
.Bk -words
.Op Fl 28dlquv
+.Op Fl c Ar shell-command
.Op Fl f Ar file
.Op Fl L Ar socket-name
.Op Fl S Ar socket-path
@@ -101,6 +102,15 @@ to assume the terminal supports 256 colours.
Like
.Fl 2 ,
but indicates that the terminal supports 88 colours.
+.It Fl c Ar shell-command
+Execute
+.Ar shell-command
+using the default shell.
+If necessary, the
+.Nm
+server will be started to retrieve the
+.Ic default-shell
+option.
.It Fl d
Force
.Nm