|
пре 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 | пре 5 месеци | |
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