diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-06 01:01:11 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-06 01:01:11 +1200 |
commit | e9c59c30cd55eba3e99a7889bf71b9519c3edb7d (patch) | |
tree | 55604422afebf6db6957c9c14f18a6cec4463241 /bin | |
parent | Update rndn(6df) manpage to reflect lost option (diff) | |
download | dotfiles-e9c59c30cd55eba3e99a7889bf71b9519c3edb7d.tar.gz dotfiles-e9c59c30cd55eba3e99a7889bf71b9519c3edb7d.zip |
Handle raw GitLab pastes
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/xgo | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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/_') ;; |