diff options
Diffstat (limited to 'bin/.bin/pkg')
-rwxr-xr-x | bin/.bin/pkg | 22 |
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 | |||
3 | case "$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 | ;; | ||
22 | esac | ||