aboutsummaryrefslogtreecommitdiff
path: root/open-stdin
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2021-11-24 00:34:10 +0100
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2021-11-24 00:34:10 +0100
commitb227267cea3afa3a7e39bb24c20d500262f32c12 (patch)
tree4a9f8b55d3bec0fba7a6da881c10416e2876450e /open-stdin
parentfeeb30effb2f41b3fdc2f76c9e45869c9e601ed4 (diff)
downloadscripts-b227267cea3afa3a7e39bb24c20d500262f32c12.tar.gz
scripts-b227267cea3afa3a7e39bb24c20d500262f32c12.zip
Some changes for new temrinal file management style
Diffstat (limited to '')
-rwxr-xr-xopen-stdin4
1 files changed, 2 insertions, 2 deletions
diff --git a/open-stdin b/open-stdin
index 48792b6..a776b9f 100755
--- a/open-stdin
+++ b/open-stdin
@@ -1,6 +1,6 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# Saves standard input in a download folder and opens it with myopen 3# Saves standard input in a download folder and opens it (spawn)
4# Usage: open-stdin 4# Usage: open-stdin
5# Requires: open-file 5# Requires: open-file
6 6
@@ -9,4 +9,4 @@ folder=${TMPDIR:-/tmp}
9 9
10tempfile=$(mktemp -p "$folder") 10tempfile=$(mktemp -p "$folder")
11 11
12cat > "$tempfile" && open-file -t "$1" "$tempfile" 12cat > "$tempfile" && open-file -s spawn -t "$1" "$tempfile"

Generated with cgit - Back to sebastiano.tronto.net