You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
163 lines
3.6 KiB
163 lines
3.6 KiB
Index: compat.h |
|
--- compat.h.orig 2024-10-02 10:41:47.000000000 +0200 |
|
+++ compat.h 2024-10-10 21:56:16.013658000 +0200 |
|
@@ -294,6 +294,22 @@ |
|
int getdtablesize(void); |
|
#endif |
|
|
|
+#ifndef MAXPATHLEN |
|
+#define MAXPATHLEN 4096 |
|
+#endif |
|
+ |
|
+#ifndef PATH_MAX |
|
+#define PATH_MAX 4096 |
|
+#endif |
|
+ |
|
+#ifndef MAXHOSTNAMELEN |
|
+#define MAXHOSTNAMELEN 64 |
|
+#endif |
|
+ |
|
+#ifndef IOV_MAX |
|
+#define IOV_MAX 1024 |
|
+#endif |
|
+ |
|
#ifndef HAVE_CLOSEFROM |
|
/* closefrom.c */ |
|
void closefrom(int); |
|
Index: osdep-freebsd.c |
|
--- osdep-freebsd.c.orig 2023-05-22 10:53:49.000000000 +0200 |
|
+++ osdep-freebsd.c 2024-10-10 21:56:16.013751000 +0200 |
|
@@ -28,7 +28,9 @@ |
|
#include <stdlib.h> |
|
#include <string.h> |
|
#include <unistd.h> |
|
+#if 0 |
|
#include <libutil.h> |
|
+#endif |
|
|
|
#include "compat.h" |
|
|
|
@@ -136,6 +138,7 @@ |
|
static char * |
|
osdep_get_cwd_fallback(int fd) |
|
{ |
|
+#if 0 |
|
static char wd[PATH_MAX]; |
|
struct kinfo_file *info = NULL; |
|
pid_t pgrp; |
|
@@ -156,6 +159,7 @@ |
|
} |
|
|
|
free(info); |
|
+#endif |
|
return (NULL); |
|
} |
|
|
|
Index: tmux.1 |
|
--- tmux.1.orig 2024-10-05 07:57:07.000000000 +0200 |
|
+++ tmux.1 2024-10-10 22:02:45.171970000 +0200 |
|
@@ -877,7 +877,7 @@ |
|
.Ql - |
|
may be followed by an offset, for example: |
|
.Bd -literal -offset indent |
|
-select-window -t:+2 |
|
+select-window \-t:+2 |
|
.Ed |
|
.Pp |
|
In addition, |
|
@@ -987,11 +987,11 @@ |
|
.Bd -literal -offset indent |
|
refresh-client -t/dev/ttyp2 |
|
|
|
-rename-session -tfirst newname |
|
+rename-session \-tfirst newname |
|
|
|
set-option -wt:0 monitor-activity on |
|
|
|
-new-window ; split-window -d |
|
+new-window ; split-window \-d |
|
|
|
bind-key R source-file \[ti]/.tmux.conf \e; \e |
|
display-message "source-file done" |
|
@@ -1000,11 +1000,11 @@ |
|
Or from |
|
.Xr sh 1 : |
|
.Bd -literal -offset indent |
|
-$ tmux kill-window -t :1 |
|
+$ tmux kill-window \-t :1 |
|
|
|
-$ tmux new-window \e; split-window -d |
|
+$ tmux new-window \e; split-window \-d |
|
|
|
-$ tmux new-session -d \[aq]vi \[ti]/.tmux.conf\[aq] \e; split-window -d \e; attach |
|
+$ tmux new-session \-d \[aq]vi \[ti]/.tmux.conf\[aq] \e; split-window \-d \e; attach |
|
.Ed |
|
.Sh CLIENTS AND SESSIONS |
|
The |
|
@@ -3919,16 +3919,16 @@ |
|
is appended to the existing setting. |
|
For example: |
|
.Bd -literal -offset indent |
|
-set -g status-left "foo" |
|
-set -ag status-left "bar" |
|
+set \-g status-left "foo" |
|
+set \-ag status-left "bar" |
|
.Ed |
|
.Pp |
|
Will result in |
|
.Ql foobar . |
|
And: |
|
.Bd -literal -offset indent |
|
-set -g status-style "bg=red" |
|
-set -ag status-style "fg=blue" |
|
+set \-g status-style "bg=red" |
|
+set \-ag status-style "fg=blue" |
|
.Ed |
|
.Pp |
|
Will result in a red background |
|
@@ -4618,7 +4618,7 @@ |
|
Examples are: |
|
.Bd -literal -offset indent |
|
#(sysctl vm.loadavg) |
|
-#[fg=yellow,bold]#(apm -l)%%#[default] [#S] |
|
+#[fg=yellow,bold]#(apm \-l)%%#[default] [#S] |
|
.Ed |
|
.Pp |
|
The default is |
|
@@ -5215,7 +5215,7 @@ |
|
layout after every |
|
.Ic split-window : |
|
.Bd -literal -offset indent |
|
-set-hook -g after-split-window "selectl even-vertical" |
|
+set-hook \-g after-split-window "selectl even-vertical" |
|
.Ed |
|
.Pp |
|
If a command fails, the |
|
@@ -7590,22 +7590,22 @@ |
|
.Pp |
|
Changing the default prefix key: |
|
.Bd -literal -offset indent |
|
-set-option -g prefix C-a |
|
+set-option \-g prefix C-a |
|
unbind-key C-b |
|
bind-key C-a send-prefix |
|
.Ed |
|
.Pp |
|
Turning the status line off, or changing its colour: |
|
.Bd -literal -offset indent |
|
-set-option -g status off |
|
-set-option -g status-style bg=blue |
|
+set-option \-g status off |
|
+set-option \-g status-style bg=blue |
|
.Ed |
|
.Pp |
|
Setting other options, such as the default command, |
|
or locking after 30 minutes of inactivity: |
|
.Bd -literal -offset indent |
|
-set-option -g default-command "exec /bin/ksh" |
|
-set-option -g lock-after-time 1800 |
|
+set-option \-g default-command "exec /bin/ksh" |
|
+set-option \-g lock-after-time 1800 |
|
.Ed |
|
.Pp |
|
Creating new key bindings:
|
|
|