From 09151aff2e0a52427fd06d097693b81966b163a9 Mon Sep 17 00:00:00 2001 From: sc-idevops Date: Wed, 27 Aug 2025 01:52:03 -0400 Subject: [PATCH] updated with lazygit/lazyvim deps --- udeps.sh | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/udeps.sh b/udeps.sh index b85a3b3..c261bee 100755 --- a/udeps.sh +++ b/udeps.sh @@ -6,9 +6,15 @@ function dpkg_url() { local args=${@:2} wget -q --show-progress -O $tmp_deb $src_url && - sudo dpkg -i $tmp_deb $args && - { rm -f $tmp_deb; true; } || # commands above succeeded, remove tmp file - { rm -f $tmp_deb; false; } # commands above failed, remove tmp file anyway + sudo dpkg -i $tmp_deb $args && + { + rm -f $tmp_deb + true + } || # commands above succeeded, remove tmp file + { + rm -f $tmp_deb + false + } # commands above failed, remove tmp file anyway } # installing base dependencies @@ -19,8 +25,7 @@ sudo apt -my install \ etckeeper \ tmux \ zsh \ - powerline\ - htop \ + powerline htop \ mc \ curl \ aptitude \ @@ -37,9 +42,9 @@ sudo apt -my install \ libfuse2 \ make \ shellcheck \ - lua5.2 + lua5.1 -release=`lsb_release -cs` +release=$(lsb_release -cs) if [[ $release == jammy || $release == noble ]]; then sudo apt install \ bat \ @@ -48,14 +53,14 @@ if [[ $release == jammy || $release == noble ]]; then fi read -n1 -p $'Does this system need a ssh server?\n' REPLY - if [[ $REPLY == [Yy] ]]; then - sudo apt install openssh-server fail2ban - fi +if [[ $REPLY == [Yy] ]]; then + sudo apt install openssh-server fail2ban +fi read -n1 -p $'\nDoes this system have a GUI?\n' REPLY - if [[ $REPLY == [Yy] ]]; then - sudo apt install synaptic flatpak - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - fi +if [[ $REPLY == [Yy] ]]; then + sudo apt install synaptic flatpak + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo +fi #This section installs software outside apt dpkg_url https://github.com/dandavison/delta/releases/download/0.18.2/git-delta_0.18.2_amd64.deb @@ -63,3 +68,8 @@ dpkg_url https://github.com/bootandy/dust/releases/download/v1.1.2/du-dust_1.1.2 dpkg_url https://github.com/charmbracelet/glow/releases/download/v2.1.0/glow_2.1.0_amd64.deb dpkg_url https://github.com/ClementTsang/bottom/releases/download/0.10.2/bottom_0.10.2-1_amd64.deb +echo "Install lazygit" +LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | \grep -Po '"tag_name": *"v\K[^"]*') +curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" +tar xf lazygit.tar.gz lazygit +sudo install lazygit -D -t /usr/local/bin/