aboutsummaryrefslogtreecommitdiff
path: root/bin/xgo
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-06 01:01:11 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-06 01:01:11 +1200
commite9c59c30cd55eba3e99a7889bf71b9519c3edb7d (patch)
tree55604422afebf6db6957c9c14f18a6cec4463241 /bin/xgo
parentUpdate rndn(6df) manpage to reflect lost option (diff)
downloaddotfiles-e9c59c30cd55eba3e99a7889bf71b9519c3edb7d.tar.gz
dotfiles-e9c59c30cd55eba3e99a7889bf71b9519c3edb7d.zip
Handle raw GitLab pastes
Diffstat (limited to 'bin/xgo')
-rwxr-xr-xbin/xgo4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/xgo b/bin/xgo
index fc6dbe32..6b354ac9 100755
--- a/bin/xgo
+++ b/bin/xgo
@@ -12,8 +12,8 @@ for url ; do (
# If it's a YouTube video without a given start time, load it in mpv(1)
case $url in
- # If this is a GitHub link, swap "blob" for "raw" to get the actual file
- *://github.com/*/blob/*)
+ # If this is a GitHub or GitLab link, swap "blob" for "raw" to get the actual file
+ *://github.com/*/blob/*|*://gitlab.com/*/blob/*)
url=$(printf '%s\n' "$url" | sed 's_/blob/_/raw/_')
;;