diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-02-10 18:38:59 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-02-10 18:38:59 +0100 |
| commit | cb8f9102498eddb8cd3cb907a2d64dd344a92910 (patch) | |
| tree | 91dca7118da7bcf34a146a155ea8a7faa8b7a9a6 /xedit-filter | |
| parent | 53f313bbdc7fb7d6af99d3e7f91c3c5a3bc66538 (diff) | |
| download | scripts-cb8f9102498eddb8cd3cb907a2d64dd344a92910.tar.gz scripts-cb8f9102498eddb8cd3cb907a2d64dd344a92910.zip | |
Removed environment variables for default programs. Some have been replaced by their own script.
Diffstat (limited to 'xedit-filter')
| -rwxr-xr-x | xedit-filter | 5 |
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 | |
| 5 | xeditor=${XEDITOR:-gedit} | ||
| 6 | 5 | ||
| 7 | f=$(mktemp) | 6 | f=$(mktemp) |
| 8 | cat > "$f" | 7 | cat > "$f" |
| 9 | $xeditor "$f" && cat "$f" | 8 | xeditor "$f" && cat "$f" |
| 10 | 9 | ||
