-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.sh
executable file
·100 lines (80 loc) · 2.66 KB
/
configure.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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/bin/bash
XDG_CONFIG_HOME=~/.config
sudo apt update
sudo apt install -y software-properties-common stow curl
install_zsh() {
curl -sS https://starship.rs/install.sh | sudo sh -s -- --yes
git clone --depth=1 https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
sudo apt install -y zsh zoxide
}
install_regolith() {
wget -qO - https://regolith-desktop.org/regolith.key | \
gpg --dearmor | sudo tee /usr/share/keyrings/regolith-archive-keyring.gpg > /dev/null
echo deb "[arch=amd64 signed-by=/usr/share/keyrings/regolith-archive-keyring.gpg] \
https://regolith-desktop.org/release-current-ubuntu-jammy-amd64 jammy main" | \
sudo tee /etc/apt/sources.list.d/regolith.list
sudo apt update
sudo apt install \
regolith-desktop \
regolith-session-flashback
sudo apt install \
i3xrocks-battery \
i3xrocks-weather \
i3xrocks-volume \
i3xrocks-time \
i3xrocks-keyboard-layout
}
install_tools() {
sudo apt update
sudo apt install -y \
neofetch \
lm-sensors \
tmux \
autojump \
python3-pip
pip install i3ipc libtmux
. ${XDG_CONFIG_HOME}/scripts/install-lazygit.sh
. ${XDG_CONFIG_HOME}/scripts/install-yazi.sh
. ${XDG_CONFIG_HOME}/scripts/install-fzf.sh
git config --global user.email "[email protected]"
git config --global user.name "Aleksey Budyakov"
git config --global pull.rebase true
}
install_neovim() {
git clone https://github.com/artofnothingness/nvim.git $XDG_CONFIG_HOME/nvim
. ${XDG_CONFIG_HOME}/nvim/utils/install-nvim.sh
}
install_gdb() {
. ${XDG_CONFIG_HOME}/scripts/install-gdb.sh
}
install_wezterm() {
curl -fsSL https://apt.fury.io/wez/gpg.key | sudo gpg --yes --dearmor -o /usr/share/keyrings/wezterm-fury.gpg
echo 'deb [signed-by=/usr/share/keyrings/wezterm-fury.gpg] https://apt.fury.io/wez/ * *' | sudo tee /etc/apt/sources.list.d/wezterm.list
sudo apt update
sudo apt install -y wezterm
}
stow -v -R -t ~ */
while test $# -gt 0
do
case "$1" in
--tools) install_tools
;;
--zsh) install_zsh
;;
--regolith) install_regolith
;;
--nvim) install_neovim
;;
--gdb) install_gdb
;;
--wezterm) install_wezterm
;;
--*) echo "Bad option $1"
;;
*) echo "Argument $1"
;;
esac
shift
done