add bash bak.fbh/centos7
This commit is contained in:
parent
7b7392b8de
commit
37edca457b
7
bash/bashrc_6d02aaf87914
Normal file
7
bash/bashrc_6d02aaf87914
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
scl enable devtoolset-10 bash
|
||||||
|
|
||||||
|
export http_proxy=http://192.168.3.7:7890
|
||||||
|
export https_proxy=http://192.168.3.7:7890
|
||||||
|
|
||||||
|
export PATH=/usr/local/vim/bin:$PATH
|
29
setup.sh
29
setup.sh
@ -8,6 +8,21 @@
|
|||||||
# -----
|
# -----
|
||||||
# Copyright © 2025 Feng Bohan. All Rights Reserved.
|
# Copyright © 2025 Feng Bohan. All Rights Reserved.
|
||||||
|
|
||||||
|
# 安装插件
|
||||||
|
echo "请手动执行命令:PlugInstall 安装插件"
|
||||||
|
|
||||||
|
echo "开始配置bashrc"
|
||||||
|
|
||||||
|
# 创建符号链接
|
||||||
|
ln -sf "$PWD/bash/bashrc_common" ~/.bashrc_common
|
||||||
|
|
||||||
|
# 根据当前主机名链接对应的配置
|
||||||
|
HOSTNAME=$(hostname -s)
|
||||||
|
ln -sf "$PWD/bash/bashrc_$HOSTNAME" ~/.bashrc_host
|
||||||
|
|
||||||
|
# 提示用户手动 source 或重启 Shell
|
||||||
|
echo "已部署配置!请运行: source ~/.bashrc"
|
||||||
|
|
||||||
echo "开始配置字体"
|
echo "开始配置字体"
|
||||||
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/JetBrainsMono.zip
|
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/JetBrainsMono.zip
|
||||||
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/FiraCode.zip
|
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/FiraCode.zip
|
||||||
@ -35,17 +50,3 @@ if [ ! -f ~/.vim/autoload/plug.vim ]; then
|
|||||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 安装插件
|
|
||||||
echo "请手动执行命令:PlugInstall 安装插件"
|
|
||||||
|
|
||||||
echo "开始配置bashrc"
|
|
||||||
|
|
||||||
# 创建符号链接
|
|
||||||
ln -sf "$PWD/bash/bashrc_common" ~/.bashrc_common
|
|
||||||
|
|
||||||
# 根据当前主机名链接对应的配置
|
|
||||||
HOSTNAME=$(hostname -s)
|
|
||||||
ln -sf "$PWD/bash/bashrc_$HOSTNAME" ~/.bashrc_host
|
|
||||||
|
|
||||||
# 提示用户手动 source 或重启 Shell
|
|
||||||
echo "已部署配置!请运行: source ~/.bashrc"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user