chore: ⚙️ Doing some tidy
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
# Justfile for system updates
|
||||||
|
|
||||||
|
update: update-dnf update-flatpak update-uv update-rust cleanup
|
||||||
|
@echo "All updates completed!"
|
||||||
|
|
||||||
|
update-dnf:
|
||||||
|
@echo "Checking for dnf updates..."
|
||||||
|
sudo dnf update -y
|
||||||
|
|
||||||
|
update-flatpak:
|
||||||
|
@echo "Checking for flatpak updates..."
|
||||||
|
sudo flatpak update -y
|
||||||
|
|
||||||
|
cleanup:
|
||||||
|
@echo "Doing a quick clean up..."
|
||||||
|
sudo dnf clean all
|
||||||
|
|
||||||
|
check-restart:
|
||||||
|
@echo "Checking if we need a restart..."
|
||||||
|
sudo dnf needs-restarting
|
||||||
|
|
||||||
|
update-uv:
|
||||||
|
@echo "updating UV"
|
||||||
|
uv self update
|
||||||
|
uv tool install ruff@latest
|
||||||
|
|
||||||
|
update-rust:
|
||||||
|
@echo "Updating Rust"
|
||||||
|
rustup update
|
||||||
+20
-8
@@ -18,7 +18,7 @@ echo "==> Updating Fedora base packages..."
|
|||||||
sudo dnf upgrade --refresh -y
|
sudo dnf upgrade --refresh -y
|
||||||
|
|
||||||
# 2. Install RPM‑Fusion repos (free & non‑free)
|
# 2. Install RPM‑Fusion repos (free & non‑free)
|
||||||
echo "==> Enabling RPM‑Fusion repositories..."
|
echo "==> Enabling RPM-Fusion repositories..."
|
||||||
sudo dnf install \
|
sudo dnf install \
|
||||||
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
|
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
|
||||||
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm \
|
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm \
|
||||||
@@ -26,11 +26,13 @@ sudo dnf install \
|
|||||||
|
|
||||||
# list all packages we want from dnf
|
# list all packages we want from dnf
|
||||||
package_list=(
|
package_list=(
|
||||||
"alacritty"
|
"kitty"
|
||||||
"fastfetch"
|
"fastfetch"
|
||||||
"zsh"
|
"zsh"
|
||||||
"btop"
|
"btop"
|
||||||
"steam"
|
"steam"
|
||||||
|
"code"
|
||||||
|
"just"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create a string of packages
|
# Create a string of packages
|
||||||
@@ -49,10 +51,11 @@ fi
|
|||||||
echo "==> Adding Flathub repository..."
|
echo "==> Adding Flathub repository..."
|
||||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
|
|
||||||
# 6. Install Discord via Flatpak
|
# 6. Install Flatpak Apps
|
||||||
echo "==> Installing Discord..."
|
echo "==> Installing Discord..."
|
||||||
flatpak install -y flathub com.discordapp.Discord
|
flatpak install -y flathub com.discordapp.Discord
|
||||||
flatpak install -y flathub com.spotify.Client
|
flatpak install -y flathub com.spotify.Client
|
||||||
|
flatpak install -y flathub app.zen_browser.zen
|
||||||
|
|
||||||
# 7. Install stuff from around the web that we want
|
# 7. Install stuff from around the web that we want
|
||||||
# UV for Python Dev
|
# UV for Python Dev
|
||||||
@@ -61,17 +64,19 @@ curl -LsSf https://astral.sh/uv/install.sh | sh
|
|||||||
# Rust, because we all love rust
|
# Rust, because we all love rust
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||||
|
|
||||||
# Zed, we like a Neovim Backup
|
|
||||||
curl -f https://zed.dev/install.sh | sh
|
|
||||||
|
|
||||||
# Bazecore for the Dygma Keyboard
|
# Bazecore for the Dygma Keyboard
|
||||||
./bazecore_grab.sh
|
./bazecore_grab.sh
|
||||||
|
|
||||||
|
# Starship because command line
|
||||||
|
curl -sS https://starship.rs/install.sh | sh
|
||||||
|
|
||||||
# sim link config
|
# sim link config
|
||||||
folders_to_link=(
|
folders_to_link=(
|
||||||
"alacritty"
|
# "alacritty"
|
||||||
"git"
|
"git"
|
||||||
"zsh"
|
"zsh"
|
||||||
|
"kitty"
|
||||||
|
"starship.toml" # not a folder, but should still work
|
||||||
)
|
)
|
||||||
for folder in "${folders_to_link[@]}"; do
|
for folder in "${folders_to_link[@]}"; do
|
||||||
config_path="$HOME/dotfiles/$folder"
|
config_path="$HOME/dotfiles/$folder"
|
||||||
@@ -79,8 +84,16 @@ for folder in "${folders_to_link[@]}"; do
|
|||||||
ln -s "$config_path" "$target_path"
|
ln -s "$config_path" "$target_path"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# sym link other bits.
|
||||||
ln -s $HOME/dotfiles/git/gitconfig $HOME/.gitconfig
|
ln -s $HOME/dotfiles/git/gitconfig $HOME/.gitconfig
|
||||||
|
ln -s $HOME/dotfiles/.justfile $HOME/.justfile
|
||||||
|
|
||||||
|
# untested zshrc sym link
|
||||||
|
sudo rm /etc/zshrc
|
||||||
|
sudo ln -s /etc/zshrc $HOME/dotfiles/zsh/.zshrc
|
||||||
|
|
||||||
|
# nvim set up likely needs work
|
||||||
|
# git clone https://github.com/Jake-Pullen/kickstart.nvim.git $HOME/.config/nvim
|
||||||
|
|
||||||
# 9. Clean up (optional)
|
# 9. Clean up (optional)
|
||||||
echo "==> Cleaning up package cache..."
|
echo "==> Cleaning up package cache..."
|
||||||
@@ -89,5 +102,4 @@ sudo dnf clean all
|
|||||||
echo "===================================================="
|
echo "===================================================="
|
||||||
echo "All done! Your Fedora system is now ready to go."
|
echo "All done! Your Fedora system is now ready to go."
|
||||||
echo "You can run 'flatpak list' to see Flatpak apps or 'dnf list installed' for rpm packages."
|
echo "You can run 'flatpak list' to see Flatpak apps or 'dnf list installed' for rpm packages."
|
||||||
echo "Happy hacking!"
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# first remove the old lm studio
|
# first remove the old lm studio (keeping one old version copy)
|
||||||
|
|
||||||
rm ~/AppImages/LM-Studio.AppImage
|
rm ~/AppImages/LM-Studio.AppImage.old
|
||||||
|
|
||||||
|
mv ~/AppImages/LM-Studio.AppImage ~/AppImages/LM-Studio.AppImage.old
|
||||||
|
|
||||||
mv ~/Downloads/LM-Studio*.AppImage ~/AppImages/LM-Studio.AppImage
|
mv ~/Downloads/LM-Studio*.AppImage ~/AppImages/LM-Studio.AppImage
|
||||||
|
|
||||||
chmod +x ~/AppImages/LM-Studio.AppImage
|
chmod +x ~/AppImages/LM-Studio.AppImage
|
||||||
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# tbc
|
||||||
-18
@@ -1,18 +0,0 @@
|
|||||||
# !bin/bash
|
|
||||||
echo Doing some updates!
|
|
||||||
echo Checking for dnf updates...
|
|
||||||
|
|
||||||
sudo dnf update -y
|
|
||||||
|
|
||||||
echo Checking for flatpak updates...
|
|
||||||
|
|
||||||
sudo flatpak update -y
|
|
||||||
|
|
||||||
echo Doing a quick clean up...
|
|
||||||
|
|
||||||
sudo dnf clean all
|
|
||||||
|
|
||||||
echo Checking if we need a restart...
|
|
||||||
|
|
||||||
sudo dnf needs-restarting
|
|
||||||
|
|
||||||
@@ -1760,3 +1760,67 @@ locale -a | grep -i utf
|
|||||||
: 1762289323:0;cd ~/dotfiles
|
: 1762289323:0;cd ~/dotfiles
|
||||||
: 1762289325:0;ls
|
: 1762289325:0;ls
|
||||||
: 1762289327:0;git add .
|
: 1762289327:0;git add .
|
||||||
|
: 1762289330:0;git commit
|
||||||
|
: 1762289466:0;rm ~/.config/starship.toml
|
||||||
|
: 1762289495:0;ln -s ~/dotfiles/starship.toml ~/.config/starship.toml
|
||||||
|
: 1762289496:0;ls
|
||||||
|
: 1762289510:0;ls -la ~/.config
|
||||||
|
: 1762289539:0;rm -r ~/.config/kitty
|
||||||
|
: 1762289562:0;ln -s ~/dotfiles/kitty ~/.config/kitty
|
||||||
|
: 1762289586:0;code ~/.config
|
||||||
|
: 1762290139:0;cd ~
|
||||||
|
: 1762290155:0;mv .justfile dotfiles/.justfile
|
||||||
|
: 1762290167:0;ln -s dotfiles/.justfile .jusfile
|
||||||
|
: 1762290171:0;just update
|
||||||
|
: 1762290174:0;ls
|
||||||
|
: 1762290177:0;ls -la
|
||||||
|
: 1762290190:0;rm .jusfile
|
||||||
|
: 1762290192:0;ls
|
||||||
|
: 1762290194:0;la
|
||||||
|
: 1762290203:0;ln -s dotfiles/.justfile .justfile
|
||||||
|
: 1762290206:0;just update
|
||||||
|
: 1762290397:0;la /etc/zshrc
|
||||||
|
: 1762290465:0;la /etc/zshenv
|
||||||
|
: 1762290581:0;flatpak --list
|
||||||
|
: 1762290588:0;flatpak list
|
||||||
|
: 1762290709:0;ls
|
||||||
|
: 1762290713:0;cd ~
|
||||||
|
: 1762290718:0;dnf list
|
||||||
|
: 1762290999:0;cd source
|
||||||
|
: 1762291004:0;tree -h
|
||||||
|
: 1762291025:0;cd merlin
|
||||||
|
: 1762291031:0;tree -h
|
||||||
|
: 1762291056:0;la
|
||||||
|
: 1762291357:0;code dotfiles
|
||||||
|
: 1762291499:0;cd .config/nvim
|
||||||
|
: 1762291500:0;ls
|
||||||
|
: 1762291505:0;git status
|
||||||
|
: 1762291510:0;git add .
|
||||||
|
: 1762291512:0;git commit .
|
||||||
|
: 1762291572:0;git push
|
||||||
|
: 1762291650:0;git remote add real
|
||||||
|
: 1762291667:0;git remote add real git@github.com:Jake-Pullen/kickstart.nvim.git
|
||||||
|
: 1762291684:0;git push master real/master
|
||||||
|
: 1762291689:0;git push master real
|
||||||
|
: 1762291706:0;git remote list
|
||||||
|
: 1762291708:0;git remote
|
||||||
|
: 1762291714:0;git remote -v
|
||||||
|
: 1762291731:0;git pull
|
||||||
|
: 1762291758:0;git remote remove real
|
||||||
|
: 1762291771:0;git push
|
||||||
|
: 1762291849:0;ln -s ~/.config/nvim /mnt/bulk/source
|
||||||
|
: 1762291856:0;cd ~/source
|
||||||
|
: 1762291856:0;ls
|
||||||
|
: 1762291942:0;cd ~
|
||||||
|
: 1762291942:0;ls
|
||||||
|
: 1762291948:0;cat test.txt
|
||||||
|
: 1762291954:0;rm test.txt
|
||||||
|
: 1762291956:0;ls
|
||||||
|
: 1762291964:0;la Dygma
|
||||||
|
: 1762291973:0;la bin
|
||||||
|
: 1762292232:0;code dotfiles
|
||||||
|
: 1762292278:0;cd dotfiles
|
||||||
|
: 1762292282:0;sit status
|
||||||
|
: 1762292285:0;git status
|
||||||
|
: 1762292299:0;code .
|
||||||
|
: 1762292326:0;git add .
|
||||||
|
|||||||
Reference in New Issue
Block a user