同步一些常用配置

tianyun 2c6d75645a refactor(sh_config.sh): 重构脚本并添加新功能 il y a 5 mois
app 4589f1fbfe 1 il y a 8 mois
back a90e70044b feat(ssh_config): 添加 140 和 141 主机的 SSH 别名 il y a 6 mois
.gitignore 792c1bf0fc 新增.gitignore和sh_config.sh文件。 il y a 1 an
DirectoryV3.xml 11e17c9d0f 1 il y a 9 mois
README.md 953ce43dd2 docs(README): 更新配置文件使用说明 il y a 5 mois
folder-alias.json a90e70044b feat(ssh_config): 添加 140 和 141 主机的 SSH 别名 il y a 6 mois
go_config.sh 6dfacc94b0 禁用模型生成成功消息的显示 il y a 7 mois
mac_config.sh 080faa9b59 1 il y a 9 mois
pri_config.sh 1587f6fa60 refactor(pri_config.sh): 重构上传功能并优化 memo 函数 il y a 5 mois
sh_config.sh 2c6d75645a refactor(sh_config.sh): 重构脚本并添加新功能 il y a 5 mois
ssh_config.sh a90e70044b feat(ssh_config): 添加 140 和 141 主机的 SSH 别名 il y a 6 mois
tmp.sh 8ab0770ec1 123 il y a 1 an

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 -