|
há 5 meses atrás | |
---|---|---|
app | há 8 meses atrás | |
back | há 6 meses atrás | |
.gitignore | há 1 ano atrás | |
DirectoryV3.xml | há 9 meses atrás | |
README.md | há 5 meses atrás | |
folder-alias.json | há 6 meses atrás | |
go_config.sh | há 7 meses atrás | |
mac_config.sh | há 9 meses atrás | |
pri_config.sh | há 5 meses atrás | |
sh_config.sh | há 5 meses atrás | |
ssh_config.sh | há 6 meses atrás | |
tmp.sh | há 1 ano atrás |
同步一些常用配置
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