aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/xgo5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/xgo b/bin/xgo
index e808027c..b2ff906a 100755
--- a/bin/xgo
+++ b/bin/xgo
@@ -26,6 +26,11 @@ for url ; do (
image/*)
curl -- "$url" | feh - && exit
;;
+ text/plain)
+ # shellcheck disable=SC2016
+ urxvt -e sh -c 'curl -- "$1" | "${PAGER:-more}"' \
+ _ "$url" && exit
+ ;;
esac
# Otherwise, just pass it to br(1)