mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 17:17:01 +08:00
Dict Xiong
483f7fd7f3
* auth: add .eid/authorized_certificates for pam pkcs11 auth * .zshrc: alias sl for sudo zsh -l * to-install: nix * zshrc: use gnu ls on mac * zshrc: try to use gnu-ls * try to fix ci for macos * riot: add domain box[0-9] * riot: shortcuts i,x,j * .zshrc: warn if not in main channel * sagt: reset agent so paths * sagt: import ssh-agent -P paths * common.sh: is_port_free and get_free_port * riot use get_free_port to fix issue on windows * riot: ssh support instant command * riot: proxy delimiter from comma (,) to slash (/) * riot: support multiple remotes, delimiter=comma (,) * riot: fix ci; install.sh: --no-ssh * riot: improve ci --------- Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
23 lines
1022 B
Bash
Executable File
23 lines
1022 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
declare -A INSTALL_COMMANDS
|
|
INSTALL_COMMANDS=(\
|
|
[git]="apt update && apt install git" \
|
|
[fzf]="git clone --depth 1 https://gitee.com/dictxiong/fzf.git ~/.fzf && ~/.fzf/install" \
|
|
[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' \
|
|
[v2fly]="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 | sudo bash -s - --mirror Aliyun #--dry-run' \
|
|
[lemonbench]='curl -fsSL https://ilemonra.in/LemonBenchIntl | bash -s fast # or full' \
|
|
[nix]='sh <(curl -L https://nixos.org/nix/install) #--daemon' \
|
|
)
|
|
|
|
install()
|
|
{
|
|
echo -e ${INSTALL_COMMANDS[$1]}
|
|
}
|
|
|
|
install $1
|