同步一些常用配置

tianyun e7bd0d18a8 feat(sh_config): 添加创建 requirements.txt 文件的函数 3 달 전
app 3529465fbb refactor(app): 移除 install_zellij.sh 中的未使用函数 3 달 전
back a90e70044b feat(ssh_config): 添加 140 和 141 主机的 SSH 别名 6 달 전
.gitignore 792c1bf0fc 新增.gitignore和sh_config.sh文件。 1 년 전
DirectoryV3.xml 11e17c9d0f 1 9 달 전
README.md 953ce43dd2 docs(README): 更新配置文件使用说明 5 달 전
folder-alias.json a90e70044b feat(ssh_config): 添加 140 和 141 主机的 SSH 别名 6 달 전
go_config.sh 6dfacc94b0 禁用模型生成成功消息的显示 7 달 전
mac_config.sh 080faa9b59 1 9 달 전
pri_config.sh 6672eabb0c chore(pri_config): 更新 bilibili 下载配置 4 달 전
sh_config.sh e7bd0d18a8 feat(sh_config): 添加创建 requirements.txt 文件的函数 3 달 전
ssh_config.sh a90e70044b feat(ssh_config): 添加 140 和 141 主机的 SSH 别名 6 달 전
tmp.sh 8ab0770ec1 123 1 년 전

README.md

sync

同步一些常用配置

bashrc 配置

for file in ~/sync/*_config.sh; do
    if [ -f "$file" ]; then
        source "$file"
    fi
done

alias vim-config-file='idea ~/sync'

使用一次

source <(curl -s https://git.tianyunperfect.cn/tianyunperfect/sync/raw/master/sh_config.sh)
source <(curl -s https://git.tianyunperfect.cn/tianyunperfect/sync/raw/master/pri_config.sh)

使用 N 次

sync_config_file

mkdir -p ~/.config/my_config
wget https://git.tianyunperfect.cn/tianyunperfect/sync/raw/master/sh_config.sh -O ~/.config/my_config/sh_config.sh && echo 'source ~/.config/my_config/sh_config.sh' >> ~/.zshrc
wget https://git.tianyunperfect.cn/tianyunperfect/sync/raw/master/pri_config.sh -O ~/.config/my_config/pri_config.sh && echo 'source ~/.config/my_config/pri_config.sh' >> ~/.zshrc
  • 一般需要设置
  • vim -