|
9 months ago | |
---|---|---|
.gitignore | 1 year ago | |
DirectoryV3.xml | 9 months ago | |
README.md | 9 months ago | |
mac_config.sh | 9 months ago | |
pri_config.sh | 9 months ago | |
sh_config.sh | 9 months ago | |
ssh_config.sh | 9 months ago | |
tmp.sh | 1 year ago |
同步一些常用配置
bashrc 配置
for file in ~/sync/*_config.sh; do
if [ -f "$file" ]; then
source "$file"
fi
done
alias sync_config_file='cd ~/sync && git pull && git add . && git commit -m 123 && git push'
alias vim-config-file='idea ~/sync'
source <(curl -s https://git.tianyunperfect.cn/tianyunperfect/sync/raw/master/sh_config.sh)
wget https://git.tianyunperfect.cn/tianyunperfect/sync/raw/master/sh_config.sh -O ~/sync/sh_config.sh
echo 'source ~/sync/sh_config.sh' >> ~/.bashrc