|
hace 4 meses | |
---|---|---|
app | hace 5 meses | |
back | hace 6 meses | |
.gitignore | hace 1 año | |
DirectoryV3.xml | hace 9 meses | |
README.md | hace 5 meses | |
folder-alias.json | hace 6 meses | |
go_config.sh | hace 7 meses | |
mac_config.sh | hace 9 meses | |
pri_config.sh | hace 4 meses | |
sh_config.sh | hace 4 meses | |
ssh_config.sh | hace 6 meses | |
tmp.sh | hace 1 año |
同步一些常用配置
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