|
3 달 전 | |
---|---|---|
app | 3 달 전 | |
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 | 3 달 전 | |
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