aboutsummaryrefslogtreecommitdiffstats
path: root/osurl
diff options
context:
space:
mode:
Diffstat (limited to 'osurl')
-rwxr-xr-x[-rw-r--r--]osurl6
1 files changed, 3 insertions, 3 deletions
diff --git a/osurl b/osurl
index 303d45f..e688de2 100644..100755
--- a/osurl
+++ b/osurl
@@ -1,3 +1,5 @@
+#!/usr/bin/lua
+
local lpeg = require 'lpeg'
local P,C,Cs,Cf,R = lpeg.P, lpeg.C, lpeg.Cs, lpeg.Cf, lpeg.R
@@ -36,6 +38,4 @@ for k,v in pairs(patterns) do
end
local pat = Cs((bugpat + P(1))^0)
-print(pat:match("gh#python/cpython#123"))
-print(pat:match("lp#123456"))
-print(pat:match("bramboříček"))
+os.execute("xdg-open " .. pat:match(arg[1]))