aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn <john@ankarstrom.se>2019-10-23 09:30:58 +0200
committerJohn <john@ankarstrom.se>2019-10-23 09:30:58 +0200
commitc66633ff31d50caf89a24055063c85c71af17605 (patch)
tree7fe8799468190acde1865afd975f56f5b19725b1
parent2d9446bbe431fb173e812472f438e0751fbb87b1 (diff)
downloaddwim-c66633ff31d50caf89a24055063c85c71af17605.tar.gz
xbps package support
-rwxr-xr-xdwim5
1 files changed, 5 insertions, 0 deletions
diff --git a/dwim b/dwim
index 455d778..1548a50 100755
--- a/dwim
+++ b/dwim
@@ -64,6 +64,11 @@ for ($phrase) {
fail "header file not found";
}
+ if (/^([^\s]+-[\d.]+_\d+)$/) {
+ handle "xbps package";
+ run @LAUNCHER, "in-shell", "sudo", "xbps-install", "-S", $1;
+ }
+
if (/^([^\s]+)$/) {
handle "maildir / directory / file";
my $p = path $1;