mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 11:56:59 +08:00
Dict Xiong
b6ff4116c8
* rebase zshrc, introduce DFS_NO_WALL * improve ci * improve ci * improve ci * update antigen url for DFS_NO_WALL * OK * improve ci for macos * improve test.zsh * staged * fix ci * fix ci * use local vars * introduce DFS_QUIET * mass mod install.sh * minor change * set DFS_DEV=1 to prevent update * debug: done -> fi * fix DFS_DEV * ubuntu.sh: set-mirror (ref: tuna) * preinstall_check * install.sh: -q to be quiet * install.sh: -d to DFS_DEV Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
29 lines
586 B
Bash
Executable File
29 lines
586 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
set_mirror()
|
|
{
|
|
# MIRROR=${1:-"mirrors.tuna.tsinghua.edu.cn"}
|
|
# MIRROR=${MIRROR//\//\\\/}
|
|
# sed -i 's/(archive|security).ubuntu.com/${MIRROR}/g' /etc/apt/sources.list
|
|
echo "to do ..."
|
|
}
|
|
|
|
pacman_S()
|
|
{
|
|
pacman -Syu
|
|
pacman -S tmux git zsh curl vim wget base-devel mingw-w64-x86_64-toolchain make cmake gcc zip unzip python3 python3-pip
|
|
}
|
|
|
|
router()
|
|
{
|
|
case $1 in
|
|
pacman-S ) pacman_S ;;
|
|
set-mirror ) set_mirror $2 ;;
|
|
* ) echo unknown command "$1". available: pacman-S, set-mirror ;;
|
|
esac
|
|
}
|
|
|
|
router $@
|