2022-05-20 17:34:21 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-11-05 19:45:21 +08:00
|
|
|
declare -A INSTALL_COMMANDS
|
|
|
|
INSTALL_COMMANDS=(\
|
2022-05-20 17:34:21 +08:00
|
|
|
[git]="apt update && apt install git" \
|
2022-08-20 14:24:52 +08:00
|
|
|
[fzf]="git clone --depth 1 https://gitee.com/dictxiong/fzf.git ~/.fzf && ~/.fzf/install" \
|
2022-05-20 17:34:21 +08:00
|
|
|
[acme.sh]="curl https://get.acme.sh | sh -s email=${EMAIL:-me@beardic.cn}" \
|
|
|
|
[oh-my-zsh]='sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"' \
|
|
|
|
[oh-my-tuna]='wget https://tuna.moe/oh-my-tuna/oh-my-tuna.py && sudo python oh-my-tuna.py --global' \
|
|
|
|
[v2ray]="bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh) #--remove" \
|
|
|
|
[zerotier-one]='curl -s https://install.zerotier.com | sudo bash' \
|
|
|
|
[docker-ce]='curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh #--mirror Aliyun #--dry-run' \
|
2022-05-22 00:53:55 +08:00
|
|
|
[lemonbench]='curl -fsSL https://ilemonra.in/LemonBenchIntl | bash -s fast # or full' \
|
2022-05-20 17:34:21 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
install()
|
|
|
|
{
|
2022-11-05 19:45:21 +08:00
|
|
|
echo -e ${INSTALL_COMMANDS[$1]}
|
2022-05-20 17:34:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
install $1
|