From a7dc45724e0ef950b14700509b6b34ac18e93668 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Thu, 20 Feb 2020 22:42:07 +0100 Subject: Add entry for mintlab gitlab repos --- .local/bin/open | 1 + 1 file changed, 1 insertion(+) (limited to '.local/bin') 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'" } -- cgit v1.1