|
3 hónapja | |
---|---|---|
app | 3 hónapja | |
back | 6 hónapja | |
.gitignore | 1 éve | |
DirectoryV3.xml | 9 hónapja | |
README.md | 5 hónapja | |
folder-alias.json | 6 hónapja | |
go_config.sh | 7 hónapja | |
mac_config.sh | 9 hónapja | |
pri_config.sh | 4 hónapja | |
sh_config.sh | 3 hónapja | |
ssh_config.sh | 6 hónapja | |
tmp.sh | 1 éve |
同步一些常用配置
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