|
il y a 5 mois | |
---|---|---|
app | il y a 8 mois | |
back | il y a 6 mois | |
.gitignore | il y a 1 an | |
DirectoryV3.xml | il y a 9 mois | |
README.md | il y a 5 mois | |
folder-alias.json | il y a 6 mois | |
go_config.sh | il y a 7 mois | |
mac_config.sh | il y a 9 mois | |
pri_config.sh | il y a 5 mois | |
sh_config.sh | il y a 5 mois | |
ssh_config.sh | il y a 6 mois | |
tmp.sh | il y a 1 an |
同步一些常用配置
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