同步一些常用配置

tianyun 494eae1988 feat: 添加 B 站视频下载工具 hace 4 meses
app 7afa7edb01 chore: 删除安装 Arthas 的脚本 hace 5 meses
back a90e70044b feat(ssh_config): 添加 140 和 141 主机的 SSH 别名 hace 6 meses
.gitignore 792c1bf0fc 新增.gitignore和sh_config.sh文件。 hace 1 año
DirectoryV3.xml 11e17c9d0f 1 hace 9 meses
README.md 953ce43dd2 docs(README): 更新配置文件使用说明 hace 5 meses
folder-alias.json a90e70044b feat(ssh_config): 添加 140 和 141 主机的 SSH 别名 hace 6 meses
go_config.sh 6dfacc94b0 禁用模型生成成功消息的显示 hace 7 meses
mac_config.sh 080faa9b59 1 hace 9 meses
pri_config.sh 494eae1988 feat: 添加 B 站视频下载工具 hace 4 meses
sh_config.sh fead14f90a 1 hace 4 meses
ssh_config.sh a90e70044b feat(ssh_config): 添加 140 和 141 主机的 SSH 别名 hace 6 meses
tmp.sh 8ab0770ec1 123 hace 1 año

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 -