summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbrowse9
1 files changed, 1 insertions, 8 deletions
diff --git a/browse b/browse
index ecce912..1135820 100755
--- a/browse
+++ b/browse
@@ -1,9 +1,2 @@
#!/bin/sh
-TMP=$(mktemp -p /dev/shm) &&
- { TYPE=$(curl -sL -w "%{content_type}\n" $@ -o "$TMP") && case "$TYPE" in
- application/pdf) zathura "$TMP";;
- image/*) sxiv "$TMP";;
- text/*) less "$TMP";;
- *) hexdump "$TMP";;
- esac }
-rm -f "$TMP"
+./phttp $@ | xargs ./opener