diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-11-24 00:34:10 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-11-24 00:34:10 +0100 |
| commit | b227267cea3afa3a7e39bb24c20d500262f32c12 (patch) | |
| tree | 4a9f8b55d3bec0fba7a6da881c10416e2876450e /open-stdin | |
| parent | feeb30effb2f41b3fdc2f76c9e45869c9e601ed4 (diff) | |
| download | scripts-b227267cea3afa3a7e39bb24c20d500262f32c12.tar.gz scripts-b227267cea3afa3a7e39bb24c20d500262f32c12.zip | |
Some changes for new temrinal file management style
Diffstat (limited to '')
| -rwxr-xr-x | open-stdin | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | ||
| 10 | tempfile=$(mktemp -p "$folder") | 10 | tempfile=$(mktemp -p "$folder") |
| 11 | 11 | ||
| 12 | cat > "$tempfile" && open-file -t "$1" "$tempfile" | 12 | cat > "$tempfile" && open-file -s spawn -t "$1" "$tempfile" |
