diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 00:03:45 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 00:03:45 +1200 |
commit | 4fcb4a1c6b6f6cc247f4ad93fbadcf1fe9b3e4ff (patch) | |
tree | 0f864ccb23ad9f8e8d2ab2aaef316693169c76ff /bin/xgo | |
parent | Elaborate a bit on default shell (diff) | |
download | dotfiles-4fcb4a1c6b6f6cc247f4ad93fbadcf1fe9b3e4ff.tar.gz dotfiles-4fcb4a1c6b6f6cc247f4ad93fbadcf1fe9b3e4ff.zip |
Set xgo(1) to load text/plain docs in $PAGER
Diffstat (limited to 'bin/xgo')
-rwxr-xr-x | bin/xgo | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |