Skip to content

Commit

Permalink
Update install.sh to use pacman on Arch Linux (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun authored Dec 9, 2021
1 parent e242f89 commit b549095
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,28 @@ LATEST_VERSION=$(echo "$LATEST_RELEASE" | sed -e 's/.*"tag_name":"\([^"]*\)".*/\

__atuin_install_arch(){
echo "Arch Linux detected!"
echo "Attempting AUR install"

if command -v yaourt &> /dev/null; then
echo "Found yaourt"
yaourt -S atuin
elif command -v yay &> /dev/null; then
echo "Found yay"
yay -S atuin
elif command -v pakku &> /dev/null; then
echo "Found pakku"
pakku -S atuin
elif command -v pamac &> /dev/null; then
echo "Found pamac"
pamac install atuin

if command -v pacman &> /dev/null
then
echo "Installing with pacman"
sudo pacman -S atuin
else
echo "Failed to install atuin! Please try manually: https://aur.archlinux.org/packages/atuin/"
echo "Attempting AUR install"
if command -v yaourt &> /dev/null; then
echo "Found yaourt"
yaourt -S atuin
elif command -v yay &> /dev/null; then
echo "Found yay"
yay -S atuin
elif command -v pakku &> /dev/null; then
echo "Found pakku"
pakku -S atuin
elif command -v pamac &> /dev/null; then
echo "Found pamac"
pamac install atuin
else
echo "Failed to install atuin! Please try manually: https://aur.archlinux.org/packages/atuin/"
fi
fi

}
Expand Down

0 comments on commit b549095

Please sign in to comment.