[优化] 优化bash安装脚本
This commit is contained in:
parent
fa0c75caea
commit
0c6a7c70cc
6
start.sh
6
start.sh
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
# https://gitea.whlug.cn/xunmi/getLinux/src/start.sh
|
||||
|
||||
PACK_LIST=("wget" "git" "zsh")
|
||||
ROOT_URL="https://gitea.whlug.cn/xunmi/getLinux/"
|
||||
ROOT_TMP=/tmp/xunmi
|
||||
|
@ -94,9 +96,10 @@ Download_Config() {
|
|||
sudo rm -rf -v ${TMP_ROOT}
|
||||
mkdir -p -v ${TMP_ROOT} || Show 1 "无法创建临时目录"
|
||||
tmp_dir=$(mktemp -d -p -v ${TMP_ROOT} || Show 1 "无法创建临时目录")
|
||||
Show 0 "创建临时目录: ${tmp_dir}"
|
||||
|
||||
# 下载配置
|
||||
config_url=${ROOT_URL}/src/默认分支/配置/zshrc
|
||||
config_url=${ROOT_URL}/src/配置/zshrc
|
||||
wget -t 3 -q --show-progress -c "${config_url}" || Show 1 "无法下载配置"
|
||||
# 下载zsh扩展
|
||||
ohmyzsh_dir=${ROOT_INSTALL}/oh-my-zsh
|
||||
|
@ -107,6 +110,7 @@ Download_Config() {
|
|||
sudo cp -v ${tmp_dir}/zshrc /etc/skel/.zshrc
|
||||
sudo cp -v /etc/skel/.zshrc $HOME
|
||||
ColorReset
|
||||
Show 2 "寻觅基础环境安装完成"
|
||||
}
|
||||
|
||||
Install_Zsh
|
||||
|
|
Loading…
Reference in New Issue
Block a user