|
@@ -3,6 +3,7 @@
|
|
|
同步一些常用配置
|
|
|
|
|
|
bashrc 配置
|
|
|
+
|
|
|
```
|
|
|
for file in ~/sync/*_config.sh; do
|
|
|
if [ -f "$file" ]; then
|
|
@@ -13,17 +14,23 @@ done
|
|
|
alias vim-config-file='idea ~/sync'
|
|
|
```
|
|
|
|
|
|
-
|
|
|
# 使用一次
|
|
|
+
|
|
|
```bash
|
|
|
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)
|
|
|
```
|
|
|
-# 使用N次
|
|
|
+
|
|
|
+# 使用 N 次
|
|
|
+
|
|
|
sync_config_file
|
|
|
+
|
|
|
```bash
|
|
|
-wget https://git.tianyunperfect.cn/tianyunperfect/sync/raw/master/sh_config.sh -O ~/.sh_config.sh && echo 'source ~/.sh_config.sh' >> ~/.bashrc
|
|
|
+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
|
|
|
```
|
|
|
|
|
|
- 一般需要设置
|
|
|
- vim
|
|
|
--
|
|
|
+-
|