updates config files

This commit is contained in:
adbagio 2024-05-15 03:27:52 -04:00
parent 30bdbaff30
commit 1e9aaa8d3f
No known key found for this signature in database
GPG key ID: 0AE37F9649850573
3 changed files with 24 additions and 30 deletions

View file

@ -1,8 +1,31 @@
# shell built-ins
alias cat = bat alias cat = bat
# toot aliases
alias tt = toot tui alias tt = toot tui
alias ts = toot search alias ts = toot search
alias tf = toot follow alias tf = toot follow
# cargo aliases
alias clc = cargo-install-update install-update -l alias clc = cargo-install-update install-update -l
alias cua = cargo-install-update install-update --all alias cua = cargo-install-update install-update --all
# update functions
def gdup [] { ls | get name | each { |dir| cd $dir; git pull; cd .. } }
def upin [] {
echo "Start apt, cargo and rustup upgrade:\n"
sudo apt-get update
echo "\nListing new package upgrades\n"
sudo apt list --upgradable
echo "\nDone listing new package upgrades starting package upgrade\n"
sudo apt-get upgrade -y
echo "\nAutoremoving unnecessary packages\n"
sudo apt autoremove -y
echo "\nDone apt starting cargo\n"
cargo-install-update install-update --all
echo "\nDone cargo starting rustup\n"
rustup self update
echo "\nDone rustup starting gem\n"
sudo gem update --verbose
echo "\nFinished updates."
}

View file

@ -1,29 +0,0 @@
echo "Start apt, cargo and rustup upgrade:\n"
sudo apt-get update
echo "\nListing new package upgrades\n"
sudo apt list --upgradable
echo "\nDone listing new package upgrades starting package upgrade\n"
sudo apt-get upgrade -y
echo "\nAutoremoving unnecessary packages\n"
sudo apt autoremove -y
echo "\nDone apt starting cargo\n"
cargo-install-update install-update --all
echo "\nDone cargo starting rustup\n"
rustup self update
echo "\nDone rustup starting gem\n"
sudo gem update --verbose
echo "\nFinished updates."

File diff suppressed because one or more lines are too long