aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-02-20 22:42:07 +0100
committerPatrick Spek <p.spek@tyil.nl>2020-02-20 22:42:07 +0100
commita7dc45724e0ef950b14700509b6b34ac18e93668 (patch)
tree96bc13f04ed81d0dd63abf26b019b646320f80a6
parentb11b92ee890c215f5af1fe72588b740e66deee57 (diff)
Add entry for mintlab gitlab repos
-rwxr-xr-x.local/bin/open1
1 files changed, 1 insertions, 0 deletions
diff --git a/.local/bin/open b/.local/bin/open
index c34bcea..8e597d7 100755
--- a/.local/bin/open
+++ b/.local/bin/open
@@ -42,6 +42,7 @@ proto cmd ($ --> Str) { * }
# URLs only used in a work setting, which should open in the browser used for
# working purposes.
+multi sub cmd (HttpUrl $t where { $_.hostname.ends-with('gitlab.com') && $_.path[0].?fc eq 'mintlab' }) { "chromium-browser '$t'" }
multi sub cmd (HttpUrl $t where *.hostname.ends-with('aws.amazon.com')) { "chromium-browser '$t'" }
multi sub cmd (HttpUrl $t where *.hostname.ends-with('google.com')) { "chromium-browser '$t'" }
multi sub cmd (HttpUrl $t where *.hostname.ends-with('slack.com')) { "chromium-browser '$t'" }