|
преди 4 месеца | |
---|---|---|
app | преди 5 месеца | |
back | преди 6 месеца | |
.gitignore | преди 1 година | |
DirectoryV3.xml | преди 9 месеца | |
README.md | преди 5 месеца | |
folder-alias.json | преди 6 месеца | |
go_config.sh | преди 7 месеца | |
mac_config.sh | преди 9 месеца | |
pri_config.sh | преди 4 месеца | |
sh_config.sh | преди 4 месеца | |
ssh_config.sh | преди 6 месеца | |
tmp.sh | преди 1 година |
同步一些常用配置
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)
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