-
Notifications
You must be signed in to change notification settings - Fork 2
/
startup.sh
71 lines (56 loc) · 1.57 KB
/
startup.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
#!/bin/bash
add_sudoer() {
user=$(whoami)
sudo bash -c "cat>>/etc/sudoers<<EOF
$user ALL=(ALL:ALL) NOPASSWD: ALL
EOF
"
}
add_source() {
sudo ./install.sh pacman
}
install_must_app() {
add_source
sudo pacman -S --noconfirm archlinuxcn-keyring yay fakeroot debugedit
}
update_system() {
add_source
sudo pacman -Sy
sudo pacman -Su --noconfirm
}
install_normal_app() {
sudo ./install.sh pacman
yay -S --noconfirm fish neovim fzf ranger w3m make lazygit tmux ripgrep universal-ctags gcc nodejs xsel npm go rustup fd linux-headers p7zip wget aria2 unzip python-pynvim ueberzug ffmpegthumbnailer poppler epub-thumbnailer-git net-tools reflector python-pip yarn witch python-jedi zellij exa docker docker-compose
}
install_gui_app() {
yay -S --noconfirm ibus ibus-libpinyin flameshot wqy-zenhei wqy-microhei-lite wqy-microhei wqy-bitmapfont nerd-fonts-complete debugedit microsoft-edge-stable-bin bluez bluez-utils blueman pulseaudio-bluetooth pavucontrol obs-studio pasystray bat
}
config_fish(){
chsh -s /usr/bin/fish
sudo chsh -s /usr/bin/fish
}
config_bluez(){
sudo systemctl enable bluetooth
}
config_ntp() {
sudo timedatectl set-timezone Asia/Shanghai
sudo timedatectl set-ntp true
}
config_docker() {
sudo usermod -aG docker $(whoami)
}
config(){
./install.sh fish tmux x vim konsole kitty alacritty hx i3 polybar pypi ranger
config_fish
config_bluez
config_ntp
config_docker
}
install_all(){
add_sudoer
add_source
update_system
install_must_app
install_normal_app
config
}