mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 18:38:48 +00:00
Use ~/.tmux.conf as an example rather than /etc/passwd, suggested by
deraadt@.
This commit is contained in:
parent
1492ae11a5
commit
32186950f5
8
tmux.1
8
tmux.1
@ -872,12 +872,12 @@ arguments are
|
|||||||
commands.
|
commands.
|
||||||
This may be a single argument passed to the shell, for example:
|
This may be a single argument passed to the shell, for example:
|
||||||
.Bd -literal -offset indent
|
.Bd -literal -offset indent
|
||||||
new-window 'vi /etc/passwd'
|
new-window 'vi ~/.tmux.conf'
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
Will run:
|
Will run:
|
||||||
.Bd -literal -offset indent
|
.Bd -literal -offset indent
|
||||||
/bin/sh -c 'vi /etc/passwd'
|
/bin/sh -c 'vi ~/.tmux.conf'
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
Additionally, the
|
Additionally, the
|
||||||
@ -894,7 +894,7 @@ to be given as multiple arguments and executed directly (without
|
|||||||
This can avoid issues with shell quoting.
|
This can avoid issues with shell quoting.
|
||||||
For example:
|
For example:
|
||||||
.Bd -literal -offset indent
|
.Bd -literal -offset indent
|
||||||
$ tmux new-window vi /etc/passwd
|
$ tmux new-window vi ~/.tmux.conf
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
Will run
|
Will run
|
||||||
@ -940,7 +940,7 @@ $ tmux kill-window -t :1
|
|||||||
|
|
||||||
$ tmux new-window \e; split-window -d
|
$ tmux new-window \e; split-window -d
|
||||||
|
|
||||||
$ tmux new-session -d 'vi /etc/passwd' \e; split-window -d \e; attach
|
$ tmux new-session -d 'vi ~/.tmux.conf' \e; split-window -d \e; attach
|
||||||
.Ed
|
.Ed
|
||||||
.Sh CLIENTS AND SESSIONS
|
.Sh CLIENTS AND SESSIONS
|
||||||
The
|
The
|
||||||
|
Loading…
Reference in New Issue
Block a user