summaryrefslogtreecommitdiff
path: root/bin/.bin/pkg
diff options
context:
space:
mode:
authorShubham Saini <pryr@pryr.xyz>2020-12-01 20:21:04 +0000
committerShubham Saini <pryr@pryr.xyz>2020-12-01 20:21:04 +0000
commit1ff834e2b06761b083df9959d6c3d6bd2a94d2de (patch)
treeabb8ff13bab1c6b5a0c0b17f2d29c058358d2135 /bin/.bin/pkg
parent90e96958f919df1f914381e93a97d77506fdcf03 (diff)
mah thinkpad
Diffstat (limited to 'bin/.bin/pkg')
-rwxr-xr-xbin/.bin/pkg22
1 files changed, 22 insertions, 0 deletions
diff --git a/bin/.bin/pkg b/bin/.bin/pkg
new file mode 100755
index 0000000..5eea459
--- /dev/null
+++ b/bin/.bin/pkg
@@ -0,0 +1,22 @@
1#!/bin/sh
2
3case "$1" in
4 i*)
5 sudo xbps-install "$@"
6 ;;
7 d*)
8 sudo xbps-remove -R "$@"
9 ;;
10 q*)
11 sudo xbps-query "$@"
12 ;;
13 u*)
14 sudo xbps-install -Syu
15 ;;
16 o*)
17 sudo xbps-remove -Oo
18 ;;
19 *)
20 printf "i - install\nd - delete\nq - query\nu - update\no - remove obs"
21 ;;
22esac