From 678576709da81930681b2c22c7551f3364178aae Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Thu, 14 May 2020 21:44:14 +0200 Subject: [PATCH] Add autistic 'gethub' script --- .local/bin/scripts/gethub | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .local/bin/scripts/gethub diff --git a/.local/bin/scripts/gethub b/.local/bin/scripts/gethub new file mode 100755 index 0000000..7d5a405 --- /dev/null +++ b/.local/bin/scripts/gethub @@ -0,0 +1,9 @@ +#!/bin/sh + +# Autistic script for convert GitHub links into +# links to raw files and download it via wget. + +echo "$1" | sed ' + s/github.com/raw.githubusercontent.com/g; + s/blob//g + ' | xargs -r wget