summaryrefslogtreecommitdiff
path: root/bin/.bin/pkg
blob: 8c827df9873dcf047aa693e7cc9465baebfe7b91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

case "$1" in
    i*)
        sudo pacman -S "$@"
        ;;
    d*)
        sudo pacman -Rs "$@"
        ;;
    q*)
        sudo pacman -Ss "$@"
        ;;
    u*)
        yay
        ;;
    o*)
        sudo pacman -Rsn $(pacman -Qdtq)
        ;;
    *)
        printf "i - install\nd - delete\nq - query\nu - update\no - remove obs"
        ;;
esac