-
Notifications
You must be signed in to change notification settings - Fork 0
我的配置文件示例
Alex Yan edited this page Dec 30, 2020
·
2 revisions
我的配置文件目录结构:
~/HomeNAS/Dev/Configs/mac 23:47:45
❯ tree -a -C
.
├── config.yaml
└── latest
├── gauth
│ └── gauth.csv
├── git
│ └── .gitconfig
├── hammerspoon
│ └── .hammerspoon
│ ├── Spoons
│ │ └── FnMate.spoon
│ │ ├── docs.json
│ │ └── init.lua
│ ├── init.lua
│ └── lib
│ └── ipaste.lua
├── item2
│ └── alex_item2_profile.json
├── karabiner
│ └── karabiner.json
├── node
│ ├── .npmrc
│ └── .yarnrc
├── ssh
│ └── .ssh
│ ├── config
│ ├── id_rsa
│ ├── id_rsa.pub
│ └── known_hosts
├── switch-hosts
│ └── .SwitchHosts
│ ├── data.json
│ └── preferences.json
├── tmux
│ ├── .tmux.conf
│ └── .tmux.conf.local
├── v2ray
│ └── config.json
├── vim
│ ├── .vim
│ │ └── autoload
│ │ └── plug.vim
│ └── .vimrc
└── zsh
├── .p10k.zsh
└── .zshrcconfig.yaml 内容
rules:
- name: vim
files:
- src: ./latest/vim/.vimrc
dist: ~/.vimrc
folders:
- src: ./latest/vim/.vim/autoload
dist: ~/.vim/autoload
- name: ssh
folders:
- src: ./latest/ssh/.ssh
dist: ~/.ssh
- name: git
files:
- src: ./latest/git/.gitconfig
dist: ~/.gitconfig
- name: zsh
# 安装 zsh & p10k theme
files:
- src: ./latest/zsh/.zshrc
dist: ~/.zshrc
- src: ./latest/zsh/.p10k.zsh
dist: ~/.p10k.zsh
- name: node
files:
- src: ./latest/node/.npmrc
dist: ~/.npmrc
- src: ./latest/node/.yarnrc
dist: ~/.yarnrc
- name: tmux
files:
- src: ./latest/tmux/.tmux.conf
dist: ~/.tmux.conf
- src: ./latest/tmux/.tmux.conf.local
dist: ~/.tmux.conf.local
- name: gauth
# 安装 gauth https://github.com/pcarrier/gauth
files:
- src: ./latest/gauth/gauth.csv
dist: ~/.config/gauth.csv
- name: switch-hosts
# 安装 SwitchHosts https://github.com/oldj/SwitchHosts
files:
- src: ./latest/switch-hosts/.SwitchHosts/data.json
dist: ~/.SwitchHosts/data.json
- src: ./latest/switch-hosts/.SwitchHosts/preferences.json
dist: ~/.SwitchHosts/preferences.json
- name: hammerspoon
# 安装 hammerspoon https://www.hammerspoon.org/
folders:
- src: ./latest/hammerspoon/.hammerspoon
dist: ~/.hammerspoon
- name: karabiner
# 安装 karabiner https://karabiner-elements.pqrs.org/
files:
- src: ./latest/karabiner/karabiner.json
dist: ~/.config/karabiner/karabiner.json
- name: v2ray
# 安装 v2ray https://www.v2fly.org/guide/install.html#%E5%B9%B3%E5%8F%B0%E6%94%AF%E6%8C%81
files:
- src: ./latest/v2ray/config.json
dist: /usr/local/etc/v2ray/config.json