add scripts
This commit is contained in:
parent
8e5898aa57
commit
428458e50a
36 changed files with 934 additions and 0 deletions
37
.bin/sh/update.sh
Executable file
37
.bin/sh/update.sh
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Perform update
|
||||
|
||||
sudo pacman -Syu
|
||||
|
||||
# Check pacdiff
|
||||
|
||||
{
|
||||
read -p "Execute pacdiff? [y/n]:" -n 1 -r
|
||||
echo
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
pacdiff -s
|
||||
fi
|
||||
}
|
||||
# Check for orphans
|
||||
{
|
||||
read -p "Check for orphan packages? [y/n]:" -n 1 -r
|
||||
echo
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
sudo bash /home/peter/.bin/sh/orphans.sh
|
||||
fi
|
||||
}
|
||||
# Update the Ollama model
|
||||
|
||||
read -p "Would you like to update your ollama model? [y/n]:" -n 1 -r
|
||||
echo
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
echo "Updating ollama model..."
|
||||
ollama pull llama3.1
|
||||
fi
|
||||
# Prompt reboot
|
||||
|
||||
~/.bin/sh/reboot.sh
|
Loading…
Add table
Add a link
Reference in a new issue