From c233980c84e5683082166182f5ddb37dd21cced0 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 12 Nov 2018 23:44:53 -0500 Subject: Clean up and improve dtch Removed dependency on passwd, instead using HOME and SHELL. Added signal handlers to clean up sockets more reliably and to update the window size. --- bin/man/dtch.1 | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'bin/man') diff --git a/bin/man/dtch.1 b/bin/man/dtch.1 index ad13c109..dd01c268 100644 --- a/bin/man/dtch.1 +++ b/bin/man/dtch.1 @@ -17,7 +17,11 @@ .Nm spawns the .Ar command -(by default, the user's shell) +.Po +by default, +the value of +.Ev SHELL +.Pc inside a new PTY. It then lends control of the detached PTY to .Nm atch @@ -35,11 +39,17 @@ session with the corresponding To detach from a session, type .Ic ^Q . . -.Sh FILES -.Bl -tag -.It Pa ~/.dtch/ Ns Ar name -UNIX-domain socket for the session -.Ar name . +.Sh ENVIRONMENT +.Bl -tag -width "SHELL" +.It Ev HOME +Location of +.Pa .dtch +directory for UNIX-domain sockets. +.It Ev SHELL +The default command to run, +or +.Pa /bin/sh +if unset. .El . .Sh EXAMPLES -- cgit 1.4.1