From a8ada986e739a2a4f9e72e13264b5fc5be13bcba Mon Sep 17 00:00:00 2001 From: steveokard Date: Wed, 23 Jun 2021 02:23:47 -0400 Subject: [PATCH] added programs outside of apt --- udeps.sh | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/udeps.sh b/udeps.sh index 4c83d7b..7faff05 100755 --- a/udeps.sh +++ b/udeps.sh @@ -1,5 +1,15 @@ #!/bin/bash #These are the programs I expect to find on any install +function dpkg_url() { + local tmp_deb="$(mktemp)" + local src_url=$1 + local args=${@:2} + + wget -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 +} echo "installing base dependencies" sudo apt-get -my install \ @@ -19,7 +29,8 @@ sudo apt-get -my install \ fzf \ ripgrep \ grc \ - fd-find + fd-find \ + bat read -n1 -p $'Does this system need a ssh server?\n' REPLY if [[ $REPLY == [Yy] ]]; then @@ -27,8 +38,17 @@ read -n1 -p $'Does this system need a ssh server?\n' REPLY fi read -n1 -p $'\nDoes this system have a GUI?\n' REPLY if [[ $REPLY == [Yy] ]]; then - sudo apt-get install synaptic emacs + sudo apt-get install synaptic emacs vim-gtk3 else sudo apt-get install emacs-nox fi +#This section installs software outside apt + +#select exa or lsd +dpkg_url http://mirrors.kernel.org/ubuntu/pool/universe/r/rust-exa/exa_0.9.0-4_amd64.deb +# wget https://github.com/Peltoche/lsd/releases/download/0.20.1/lsd_0.20.1_amd64.deb; sudo dpkg -i ./lsd_0.20.1_amd64.deb; rm lsd_0.20.1_amd64.deb +dpkg_url https://github.com/muesli/duf/releases/download/v0.6.2/duf_0.6.2_linux_amd64.deb +dpkg_url https://github.com/ClementTsang/bottom/releases/download/0.6.1/bottom_0.6.1_amd64.deb +#https://github.com/dandavison/delta/releases/download/0.8.0/delta-0.8.0-x86_64-unknown-linux-gnu.tar.gz +