mirror of
https://github.com/ellie/atuin.git
synced 2024-09-11 21:18:22 +03:00
Update install.sh to use pacman
on Arch Linux (#229)
This commit is contained in:
parent
e242f89a66
commit
b549095d0b
@ -37,8 +37,13 @@ LATEST_VERSION=$(echo "$LATEST_RELEASE" | sed -e 's/.*"tag_name":"\([^"]*\)".*/\
|
||||
|
||||
__atuin_install_arch(){
|
||||
echo "Arch Linux detected!"
|
||||
echo "Attempting AUR install"
|
||||
|
||||
if command -v pacman &> /dev/null
|
||||
then
|
||||
echo "Installing with pacman"
|
||||
sudo pacman -S atuin
|
||||
else
|
||||
echo "Attempting AUR install"
|
||||
if command -v yaourt &> /dev/null; then
|
||||
echo "Found yaourt"
|
||||
yaourt -S atuin
|
||||
@ -54,6 +59,7 @@ __atuin_install_arch(){
|
||||
else
|
||||
echo "Failed to install atuin! Please try manually: https://aur.archlinux.org/packages/atuin/"
|
||||
fi
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user