diff options
author | June McEnroe <june@causal.agency> | 2020-10-29 12:15:04 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-10-29 12:15:04 -0400 |
commit | 021874674959883ce3dd9ac52b9b208b16d1578a (patch) | |
tree | 818aecb99732312b5ab272c43ec1a219d29b4805 /bin | |
parent | Switch gr alias back to git rebase (diff) | |
download | src-021874674959883ce3dd9ac52b9b208b16d1578a.tar.gz src-021874674959883ce3dd9ac52b9b208b16d1578a.zip |
Remove edit
Diffstat (limited to 'bin')
-rw-r--r-- | bin/.gitignore | 1 | ||||
-rw-r--r-- | bin/Makefile | 1 | ||||
-rw-r--r-- | bin/README.7 | 4 | ||||
-rw-r--r-- | bin/edit.sh | 9 | ||||
-rw-r--r-- | bin/man1/edit.1 | 34 |
5 files changed, 1 insertions, 48 deletions
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 & &' |