-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_once_before_install-android-packages.sh.tmpl
67 lines (49 loc) · 1.89 KB
/
run_once_before_install-android-packages.sh.tmpl
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
{{ if eq .chezmoi.os "android" -}}
#!/bin/sh
echo -e "\e[1;31m-------update packages--------\e[0m"
pkg update -y
pkg upgrade -y
echo -e "\e[1;31m-------install other tools--------\e[0m"
pkg install -y termux-tools termux-api glab-cli git-delta python direnv nnn openssh openssl libxml2 libxslt termux-api nodejs
pip install trash-cli
echo -e "\e[1;31m-------install helix--------\e[0m"
pkg install helix
hx --grammar fetch
hx --grammar build
echo -e "\e[1;31m-------install neovim--------\e[0m"
pkg install neovim
echo -e "\e[1;31m-------install rust environment--------\e[0m"
pkg install rust
echo -e "\e[1;31m-------install ai tool--------\e[0m"
pip install shell-gpt
cargo install llmvm-codeassist
cargo install llmvm-core
cargo install llmvm-outsource
echo -e "\e[1;31m-------install web dev environment--------\e[0m"
pkg install golang
go install github.com/mattn/efm-langserver@latest
corepack enable pnpm
pnpm -g install prettier eslint_d stylelint @fsouza/prettierd yaml-language-server @vue/language-server [email protected] vscode-langservers-extracted
pkg install binutils
cargo install taplo-cli --locked --features=lsp
echo -e "\e[1;31m-------install linux dev environmet--------\e[0m"
pnpm -g i bash-language-server
echo -e "\e[1;31m-------install zsh--------\e[0m"
rm -rf $HOME/.local/share/.zsh-vi-mode
git clone https://github.com/jeffreytse/zsh-vi-mode.git $HOME/.local/share/.zsh-vi-mode
rm -rf $HOME/.local/share/.zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.local/share/.zsh-autosuggestions
pkg install zsh starship
chsh -s zsh
echo -e "\e[1;31m-------restore home dir structure--------\e[0m"
echo "y" | termux-setup-storage
mkdir -p projects
mkdir -p hobby
if [ ! -L "$HOME/Public" ]; then
ln -s $HOME/storage/shared/Public
fi
if [ ! -L "$HOME/Public" ]; then
ln -s $HOME/storage/shared $HOME/android
fi
cp $HOME/storage/shared/Public/.secrets .
{{ end -}}