From 7fd183809907ea1ec546342270312edeb7850985 Mon Sep 17 00:00:00 2001 From: Jake Pullen Date: Tue, 4 Nov 2025 21:38:49 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20=E2=9A=99=EF=B8=8F=20Doing=20some=20ti?= =?UTF-8?q?dy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .justfile | 29 ++++++++++++++++ set_up_dev/fedora.sh | 28 ++++++++++----- set_up_dev/lm_studio_grab.sh | 9 ++--- set_up_dev/restore_ssh_gpg.sh | 1 + updater.sh | 18 ---------- zsh/.histfile | 64 +++++++++++++++++++++++++++++++++++ 6 files changed, 119 insertions(+), 30 deletions(-) create mode 100644 .justfile create mode 100644 set_up_dev/restore_ssh_gpg.sh delete mode 100755 updater.sh diff --git a/.justfile b/.justfile new file mode 100644 index 0000000..fd03c6c --- /dev/null +++ b/.justfile @@ -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 diff --git a/set_up_dev/fedora.sh b/set_up_dev/fedora.sh index 97fb7f4..b7cf885 100755 --- a/set_up_dev/fedora.sh +++ b/set_up_dev/fedora.sh @@ -18,7 +18,7 @@ echo "==> Updating Fedora base packages..." sudo dnf upgrade --refresh -y # 2. Install RPM‑Fusion repos (free & non‑free) -echo "==> Enabling RPM‑Fusion repositories..." +echo "==> Enabling RPM-Fusion repositories..." sudo dnf install \ 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 \ @@ -26,11 +26,13 @@ sudo dnf install \ # list all packages we want from dnf package_list=( - "alacritty" + "kitty" "fastfetch" "zsh" "btop" "steam" + "code" + "just" ) # Create a string of packages @@ -49,10 +51,11 @@ fi echo "==> Adding Flathub repository..." 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..." flatpak install -y flathub com.discordapp.Discord 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 # UV for Python Dev @@ -61,17 +64,19 @@ curl -LsSf https://astral.sh/uv/install.sh | sh # Rust, because we all love rust 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_grab.sh +# Starship because command line +curl -sS https://starship.rs/install.sh | sh + # sim link config folders_to_link=( - "alacritty" + # "alacritty" "git" "zsh" + "kitty" + "starship.toml" # not a folder, but should still work ) for folder in "${folders_to_link[@]}"; do config_path="$HOME/dotfiles/$folder" @@ -79,8 +84,16 @@ for folder in "${folders_to_link[@]}"; do ln -s "$config_path" "$target_path" done +# sym link other bits. 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) echo "==> Cleaning up package cache..." @@ -89,5 +102,4 @@ sudo dnf clean all echo "====================================================" 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 "Happy hacking!" diff --git a/set_up_dev/lm_studio_grab.sh b/set_up_dev/lm_studio_grab.sh index 7a20e02..98583df 100755 --- a/set_up_dev/lm_studio_grab.sh +++ b/set_up_dev/lm_studio_grab.sh @@ -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 -chmod +x ~/AppImages/LM-Studio.AppImage - +chmod +x ~/AppImages/LM-Studio.AppImage \ No newline at end of file diff --git a/set_up_dev/restore_ssh_gpg.sh b/set_up_dev/restore_ssh_gpg.sh new file mode 100644 index 0000000..c66ac6a --- /dev/null +++ b/set_up_dev/restore_ssh_gpg.sh @@ -0,0 +1 @@ +# tbc \ No newline at end of file diff --git a/updater.sh b/updater.sh deleted file mode 100755 index 780559d..0000000 --- a/updater.sh +++ /dev/null @@ -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 - diff --git a/zsh/.histfile b/zsh/.histfile index 05f7651..fc0b5c6 100644 --- a/zsh/.histfile +++ b/zsh/.histfile @@ -1760,3 +1760,67 @@ locale -a | grep -i utf : 1762289323:0;cd ~/dotfiles : 1762289325:0;ls : 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 .