mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 18:37:01 +08:00
Dict Xiong
6e33fc0875
* dogo/doll dogo supports zsh/bash/sh; doll is introduced to launch a new docker container; update $SUDO in command.sh * update ci * fix regex * dogo: enhance, support -[0-9]* * dogo&doll: enhanced * zshrc: sibd and sob
29 lines
602 B
Bash
Executable File
29 lines
602 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 man-pages-posix
|
|
}
|
|
|
|
router()
|
|
{
|
|
case $1 in
|
|
pacman-S ) pacman_S ;;
|
|
set-mirror ) set_mirror $2 ;;
|
|
* ) echo unknown command "$1". available: pacman-S, set-mirror ;;
|
|
esac
|
|
}
|
|
|
|
router $@
|