diff options
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 1 | ||||
| -rwxr-xr-x | templess | 8 |
2 files changed, 9 insertions, 0 deletions
| @@ -26,6 +26,7 @@ SCRIPTS = addressgrep \ | |||
| 26 | popup-terminal \ | 26 | popup-terminal \ |
| 27 | sfeed-browser \ | 27 | sfeed-browser \ |
| 28 | spawn \ | 28 | spawn \ |
| 29 | templess \ | ||
| 29 | togglemute \ | 30 | togglemute \ |
| 30 | translate \ | 31 | translate \ |
| 31 | urlgrep \ | 32 | urlgrep \ |
diff --git a/templess b/templess new file mode 100755 index 0000000..ec3b999 --- /dev/null +++ b/templess | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Write standard in to a temporary file and sends it to a pager. | ||
| 4 | |||
| 5 | pager=${PAGER:-less} | ||
| 6 | tempfile=$(mktemp) | ||
| 7 | |||
| 8 | cat > "$tempfile" && $pager "$tempfile" | ||
