Add paru support to p and new AI script.

This commit is contained in:
2024-01-07 13:21:42 +00:00
parent def5dd8246
commit c27852d0dd
3 changed files with 18 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ if [[ $(p c ollama) == 0 ]]; then
sleep 1 sleep 1
kgx -e "ollama run codellama" kgx -e "ollama run codellama"
else else
d i ollama p i ollama
echo echo
echo 'Run the script again...' echo 'Run the script again...'
fi fi

6
scripts/generalAI-jan.sh Normal file
View File

@@ -0,0 +1,6 @@
source ./p.sh
if [[ $(p c jan) == 0 ]]; then
echo "Jan is installed. Launch it from the app menu."
else
p i jan
fi

View File

@@ -38,10 +38,17 @@ p() {
install="sudo apt install" install="sudo apt install"
remove="sudo apt remove" remove="sudo apt remove"
elif [ "$(grep -Ei 'arch|manjaro|artix' /etc/*release)" ]; then elif [ "$(grep -Ei 'arch|manjaro|artix' /etc/*release)" ]; then
if pacman -Qs paru >/dev/null; then
distro="ARCH"
update="paru -Syu"
install="paru -S"
remove="paru -R"
else
distro="ARCH" distro="ARCH"
update="sudo pacman -Syu" update="sudo pacman -Syu"
install="sudo pacman -S" install="sudo pacman -S"
remove="sudo pacman -R" remove="sudo pacman -R"
fi
else else
echo "DISTRO NOT SUPPORTED" echo "DISTRO NOT SUPPORTED"
return 1 return 1