Added new PS1 prompt and universal package manager, p.

This commit is contained in:
2024-01-05 19:06:17 +00:00
parent 307e0809ea
commit 0fdac6c705
5 changed files with 168 additions and 51 deletions

View File

@@ -1,10 +1,12 @@
#! /bin/bash
ollama=$(pacman -Q ollama)
if [[ -n "$ollama" ]]; then
source ./p.sh
if [[ $(p c ollama) == 0 ]]; then
kgx -e "ollama serve"
sleep 1
kgx -e "ollama run codellama"
else
kgx -e "sudo paru -S ollama; echo 'Run the script again...'"
d i ollama
echo
echo 'Run the script again...'
fi