blob: e7443637223b5f36cb0b5b7289a46c9d759c49b7 (
plain) (
blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
#!/bin/sh
set -ex
nvimdir="$HOME/scm/pub/neovim-nvim"
sudo apt update
# arm64/rockchip
case "$(uname -r)" in
*rockchip)
sudo apt install -y cryptsetup vlc zram-config
;;
esac
sudo apt install -y \
btop \
curl \
dconf-editor \
git \
htop \
lua-nvim \
neofetch \
neovim \
npm \
oathtool \
pavucontrol \
scdaemon \
tmux \
vim \
wl-clipboard \
sudo apt build-dep -y neovim
if ! [ -d "$nvimdir" ] ; then
git clone https://github.com/neovim/neovim "$nvimdir"
fi
cd "$nvimdir"
rm -rf build || echo ""
make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/.local" -j"$(nproc)"
make install
cd -
case "$(uname -m)" in
x86_64)
# https://brave.com/linux/
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg \
https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main" \
| sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update -y
sudo apt install -y brave-browser
;;
esac
if echo "$XDG_CURRENT_DESKTOP" | grep -qi gnome ; then
sudo apt install -y \
gnome-tweaks flatpak gnome-software-plugin-flatpak
chksum="dbf3f104767455a7a3d16608a515e0888661782abee372a443e23cebca63239c"
commit=4a90c70fa68641ed34a9a4b892064bb51b276b06
tmpf="$(mktemp)"
trap "rm -f $tmpf" EXIT INT
curl https://raw.githubusercontent.com/nordtheme/gnome-terminal/$commit/src/nord.sh \
> "$tmpf"
if sha256sum "$tmpf" | grep -qi "$chksum"; then
bash "$tmpf"
else
echo "bad checksum"
fi
fi
|