aboutsummaryrefslogtreecommitdiff
path: root/xedit-filter
diff options
context:
space:
mode:
Diffstat (limited to 'xedit-filter')
-rwxr-xr-xxedit-filter5
1 files changed, 2 insertions, 3 deletions
diff --git a/xedit-filter b/xedit-filter
index 93e908c..9422760 100755
--- a/xedit-filter
+++ b/xedit-filter
@@ -1,10 +1,9 @@
1#/!bin/sh 1#/!bin/sh
2 2
3# Open stdin in a text editor and sends modified selection to stdout 3# Open stdin in a text editor and sends modified selection to stdout
4 4# Requires: xeditor
5xeditor=${XEDITOR:-gedit}
6 5
7f=$(mktemp) 6f=$(mktemp)
8cat > "$f" 7cat > "$f"
9$xeditor "$f" && cat "$f" 8xeditor "$f" && cat "$f"
10 9

Generated with cgit - Back to sebastiano.tronto.net