summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-10-29 12:15:04 -0400
committerJune McEnroe <june@causal.agency>2020-10-29 12:15:04 -0400
commitac378113a257899342036b28224f7ae3a854f7ce (patch)
treeffe0b94690ce21eb130fda27dc96f57f1889ec47 /bin
parentSwitch gr alias back to git rebase (diff)
downloadsrc-ac378113a257899342036b28224f7ae3a854f7ce.tar.gz
src-ac378113a257899342036b28224f7ae3a854f7ce.zip
Remove edit
Diffstat (limited to '')
-rw-r--r--bin/.gitignore1
-rw-r--r--bin/Makefile1
-rw-r--r--bin/README.74
-rw-r--r--bin/edit.sh9
-rw-r--r--bin/man1/edit.134
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 & &'