-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeps-ubuntu.sh
executable file
·35 lines (29 loc) · 952 Bytes
/
deps-ubuntu.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
# Install apt packages (that don't depend on the version)
sudo apt-get update && \
sudo apt-get -y install --no-install-recommends \
bat \
neofetch \
zsh zsh-syntax-highlighting zsh-autosuggestions \
stow ed
# Install powerlevel10k (prompt for zsh)
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
# Installing version-dependent packages
# Source variables related to Ubuntu version
# ("$DISTRIB_RELEASE" gets the version)
. /etc/lsb-release
# Ubuntu 20.10 or later?
if (dpkg --compare-versions "$DISTRIB_RELEASE" "ge" "20.10")
then
sudo apt-get -y install --no-install-recommends eza
else
sudo apt-get -y install --no-install-recommends cargo
cargo install eza
fi
# Ubuntu 21.04 or later?
if (dpkg --compare-versions "$DISTRIB_RELEASE" "ge" "21.04")
then
sudo apt-get -y install --no-install-recommends zoxide
else
sudo apt-get -y install --no-install-recommends autojump
fi