-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·50 lines (39 loc) · 1.49 KB
/
install.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
#!/bin/sh
DIR=$(pwd)
source $DIR/utils.sh
prettyecho Install everything
# Essential packages
prettyecho Install extra packages
sudo pacman -S --noconfirm - <$DIR/pkglist.txt
# Essential apps
prettyecho Install AUR packages
sudo pacman -Rns --noconfirm noto-fonts-emoji
yay -S --answerdiff None --answerclean None --noconfirm - <$DIR/pkglist-aur.txt
# Oh-My-Zsh
prettyecho Install Oh-My-Zsh
prepare $HOME/.oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
prettyecho Install Zsh plugins
ZSH_PLUGIN=$HOME/.oh-my-zsh/custom/plugins
gitclone [email protected]:zsh-users/zsh-syntax-highlighting.git $ZSH_PLUGIN/zsh-syntax-highlighting
gitclone [email protected]:zsh-users/zsh-autosuggestions.git $ZSH_PLUGIN/zsh-autosuggestions
# Tmux Plugin Manager
prettyecho Install Tmux Plugin Manager
gitclone [email protected]:tmux-plugins/tpm.git $HOME/.tmux/plugins/tpm
# Rust
prettyecho Install Rust
curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -yq
# gRPC
prettyecho Install gRPC Gateway
go install \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@latest \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@latest \
google.golang.org/protobuf/cmd/protoc-gen-go@latest \
google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
# Ollama
prettyecho Install Ollama
if test ! $(which ollama); then
curl -fsSL https://ollama.com/install.sh | sh
else
prettyecho Ollama already installed
fi