compatibility

This commit is contained in:
Strix 2023-10-14 22:38:04 +02:00
parent 9772702105
commit e97067be10
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
2 changed files with 23 additions and 2 deletions

View file

@ -1,5 +1,5 @@
^. ./sync.conf && $PM_COMMAND $PM_UPGRADE ^. ./sync.conf && $PM_COMMAND $PM_UPGRADE $PM_NOCONFIRM
^[ -d /tmp/yay ] && rm -rf /tmp/yay ^[ -d /tmp/yay ] && rm -rf /tmp/yay
git clone https://aur.archlinux.org/yay /tmp/yay git clone https://aur.archlinux.org/yay /tmp/yay
cd /tmp/yay && makepkg --noconfirm -si && echo $PREF_TERM cd /tmp/yay && makepkg --noconfirm -si && echo $PREF_TERM
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended || echo "zsh not installed"

21
comp.sh Executable file
View file

@ -0,0 +1,21 @@
#!/bin/sh
# #################### #
# Compatibility Script #
# #################### #
if [ ! -z "$1" ]; then
cmd=$1; shift
fi
case $cmd in
debian|ubuntu|apt|deb)
PM_COMMAND=apt \
PM_NOCONFIRM=-y \
PM_INSTALL=install \
PM_UPDATE=update \
PM_UPGRADE=upgrade \
PM_REMOVE=purge \
./sync.sh "$@"
;;
*|''|arch) ./sync.sh ;;
esac