added programs outside of apt
This commit is contained in:
parent
ec75016438
commit
a8ada986e7
1 changed files with 22 additions and 2 deletions
24
udeps.sh
24
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue