summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbrowser_launcher.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/browser_launcher.pl b/browser_launcher.pl
index 3bc2dfe..a77dc2a 100755
--- a/browser_launcher.pl
+++ b/browser_launcher.pl
@@ -14,6 +14,12 @@ use autodie qw(:all);
use Text::Template 'fill_in_string';
my $sites = {
+ 'ssh-git' => {
+ 'patterns' => [
+ qr|^ssh://(?:(?<username>\w+)@)?(?<domain>[\w.]+)(?::(?<port>\d+))?/(?<path>.*)\.git|,
+ ],
+ 'command' => ['firefox', 'https://{$domain}/{$path}'],
+ },
'youtube' => {
'patterns' => [
qr|^https://www.youtube.com|,