From ac378113a257899342036b28224f7ae3a854f7ce Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 29 Oct 2020 12:15:04 -0400 Subject: Remove edit --- bin/.gitignore | 1 - bin/Makefile | 1 - bin/README.7 | 4 +--- bin/edit.sh | 9 --------- bin/man1/edit.1 | 34 ---------------------------------- 5 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 bin/edit.sh delete mode 100644 bin/man1/edit.1 diff --git a/bin/.gitignore b/bin/.gitignore index 6daf18fc..f7c65388 100644 --- a/bin/.gitignore +++ b/bin/.gitignore @@ -6,7 +6,6 @@ bri c config.mk dtch -edit ever fbatt fbclock diff --git a/bin/Makefile b/bin/Makefile index 28136ad2..3ba877c1 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -23,7 +23,6 @@ BINS += beef BINS += bit BINS += c BINS += dtch -BINS += edit BINS += glitch BINS += hi BINS += hnel diff --git a/bin/README.7 b/bin/README.7 index a0fcb236..4ce7fc74 100644 --- a/bin/README.7 +++ b/bin/README.7 @@ -1,4 +1,4 @@ -.Dd September 4, 2020 +.Dd October 29, 2020 .Dt BIN 7 .Os "Causal Agency" . @@ -26,8 +26,6 @@ backlight brightness control run C statements .It Xr dtch 1 detached sessions -.It Xr edit 1 -interactive script .It Xr ever 1 watch files .It Xr fbatt 1 diff --git a/bin/edit.sh b/bin/edit.sh deleted file mode 100644 index c276707f..00000000 --- a/bin/edit.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -set -eu - -script=$(mktemp) -trap "rm -f '$script'" EXIT - -sed "s/.*/${1:-: &}/" >> "$script" -$EDITOR "$script" -sh -eux "$script" diff --git a/bin/man1/edit.1 b/bin/man1/edit.1 deleted file mode 100644 index 8c94939a..00000000 --- a/bin/man1/edit.1 +++ /dev/null @@ -1,34 +0,0 @@ -.Dd August 29, 2019 -.Dt EDIT 1 -.Os -. -.Sh NAME -.Nm edit -.Nd interactive script -. -.Sh SYNOPSIS -.Nm -.Op Ar replacement -. -.Sh DESCRIPTION -.Nm -creates a temporary -.Xr sh 1 -script -from standard input -and invokes -.Ev EDITOR -before it executes. -The -.Ar replacement -argument is used in a -.Xr sed 1 -substitute expression -to generate the script. -The default -.Ar replacement -is -.Ql : & . -. -.Sh EXAMPLES -.Dl ls | edit 'mv & &' -- cgit 1.4.1