diff --git a/scripts/codeAI-ollama.sh b/scripts/codeAI-ollama.sh index 9a2569fa..1ff22e71 100755 --- a/scripts/codeAI-ollama.sh +++ b/scripts/codeAI-ollama.sh @@ -6,7 +6,7 @@ if [[ $(p c ollama) == 0 ]]; then sleep 1 kgx -e "ollama run codellama" else - d i ollama + p i ollama echo echo 'Run the script again...' fi diff --git a/scripts/generalAI-jan.sh b/scripts/generalAI-jan.sh new file mode 100644 index 00000000..e673d944 --- /dev/null +++ b/scripts/generalAI-jan.sh @@ -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 diff --git a/scripts/p.sh b/scripts/p.sh index 622df843..bd5a5d12 100755 --- a/scripts/p.sh +++ b/scripts/p.sh @@ -38,10 +38,17 @@ p() { install="sudo apt install" remove="sudo apt remove" elif [ "$(grep -Ei 'arch|manjaro|artix' /etc/*release)" ]; then - distro="ARCH" - update="sudo pacman -Syu" - install="sudo pacman -S" - remove="sudo pacman -R" + if pacman -Qs paru >/dev/null; then + distro="ARCH" + update="paru -Syu" + install="paru -S" + remove="paru -R" + else + distro="ARCH" + update="sudo pacman -Syu" + install="sudo pacman -S" + remove="sudo pacman -R" + fi else echo "DISTRO NOT SUPPORTED" return 1