This repo contains serval dotfiles on my personal Macbook.
- add/remove/sync dotfiles: Workflow
- locate a specific dotfile: Structure
- setup the core: Homebrew
- checkout the inner mechanism: Dotbot
In case you forget, read what dotbot dose for you?
- move the original dotfile to current directory
mv ~/.vimrc ./editor/vimrc
- update install.conf.yml
- link: ~/.vimrc: editor/.vimrc
- execute install in terminal
- do backup
- remove symlink in target directory
rm ~/.vimrc
- copy the dotfile to target directory
mv ./editor/vimrc ~/.vimrc
- remove config in install.conf.yml
- link: # ~/.vimrc: editor/.vimrc
- execute
./install
in terminal - do backup
git add <files>
git-cz # or regular commit
-
Setup python and git environment, then do
git clone https://github.com/HenryC-3/dotfiles.git cd ./dotfiles
-
./install
Dotbot dose those major jobs for you
- Create symlinks. Dotbot create symlink based on two things
- dotfiles in this directory
- configuration in install.conf.yml
# symlink editor/.vimrc in current directory to ~/.vimrc - link: ~/.vimrc: editor/.vimrc
- run shell command defined in install.conf.yml when you run install
- shell: - [git submodule update --init --recursive, Installing submodules]
- remove deprecated link in target directory
- clean: ["~"]
Use folder to organize dotfiles, each folder may containing a README for further explanation of the dotfile.
.
├── misc # anything falls out fellow categories
├── lang # version manager/package manager
│ ├── javascript
│ └── python
├── editor # neovim
├── window manager # yabai/skhd/karabiner
├── terminal
│ ├── emulator # alacritty
│ ├── feature # basic utilities like fzf/ripgrep/tmux
│ ├── shell # bash/zsh
│ └── theme # p10k
└── README.md
- Bootstrap your Dotfiles with dotbot - Elliot DeNolf: introduce the basic workflow of
- how to init dotbot
- how to set up dotfiles on an other machine
- Dotbot configuration references