add bash bak.fbh/centos7

This commit is contained in:
fengbh 2025-04-19 09:28:22 +00:00
parent 7b7392b8de
commit 37edca457b
2 changed files with 22 additions and 14 deletions

7
bash/bashrc_6d02aaf87914 Normal file
View 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

View File

@ -8,6 +8,21 @@
# -----
# 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 "开始配置字体"
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
@ -35,17 +50,3 @@ if [ ! -f ~/.vim/autoload/plug.vim ]; then
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
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"