sync with OpenBSD -current
This commit is contained in:
parent
65428aad14
commit
57ecf9bd1d
2058 changed files with 272997 additions and 201906 deletions
|
@ -1,4 +1,4 @@
|
|||
.\" $OpenBSD: tmux.1,v 1.941 2024/04/10 07:36:25 nicm Exp $
|
||||
.\" $OpenBSD: tmux.1,v 1.944 2024/05/14 09:32:37 nicm Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
.\"
|
||||
|
@ -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: April 10 2024 $
|
||||
.Dd $Mdocdate: May 14 2024 $
|
||||
.Dt TMUX 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -4881,6 +4881,14 @@ layout after every
|
|||
set-hook -g after-split-window "selectl even-vertical"
|
||||
.Ed
|
||||
.Pp
|
||||
If a command fails, the
|
||||
.Ql command-error
|
||||
hook will be fired.
|
||||
For example, this could be used to write to a log file:
|
||||
.Bd -literal -offset indent
|
||||
set-hook -g command-error "run-shell \\"echo 'a tmux command failed' >>/tmp/log\\""
|
||||
.Ed
|
||||
.Pp
|
||||
All the notifications listed in the
|
||||
.Sx CONTROL MODE
|
||||
section are hooks (without any arguments), except
|
||||
|
@ -4913,6 +4921,8 @@ Run when focus exits a client
|
|||
Run when a client is resized.
|
||||
.It client-session-changed
|
||||
Run when a client's attached session is changed.
|
||||
.It command-error
|
||||
Run when a command fails.
|
||||
.It pane-died
|
||||
Run when the program running in a pane exits, but
|
||||
.Ic remain-on-exit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue