sh/pm.sh

21 lines
536 B
Bash
Raw Normal View History

2021-09-28 03:15:24 +00:00
#!/bin/sh
2021-09-28 03:19:07 +00:00
OS=`cat $SH_CONFIG/os`
2021-09-28 03:15:24 +00:00
2021-09-28 03:44:18 +00:00
[ $OS == "alpine" ] && \
2021-09-28 03:15:24 +00:00
alias install='apk add' && \
alias uninstall='apk remove' && \
alias update='apk update'
2021-09-28 03:44:18 +00:00
[ $OS == "void" ] && \
2021-09-28 03:15:24 +00:00
alias install='xbps-install -Sy' && \
alias installed='xbps-query -m' && \
alias uninstall='xbps-remove -Ry' && \
alias search='xbps-query -Rs' && \
alias update='xbps-install -Syu'
2021-09-28 03:44:18 +00:00
[ $OS == "debian" ] && \
2021-09-28 03:15:24 +00:00
alias install='apt install' && \
alias uninstall='apt remove' && \
alias update='apt update && apt upgrade -y'