Personal dot files for macOS and Ubuntu, quickly setup work env for developer.
Example tools:
- brew/npm/uv
- git/vim/zsh/tmux/direnv
Clone the repo with https:
git clone https://github.com/guoqiao/dot.git ~/.dot && cd ~/.dotOr if you prefer ssh:
git clone git@github.com:guoqiao/dot.git ~/.dot && cd ~/.dot
Install basic deps:
sudo apt install -y make zsh
change shell to zsh if not yet:
echo $SHELL | grep zsh || chsh -s $(which zsh)
NOTE: You may need to logout if you changed your shell.
Verify shell is zsh:
echo $SHELL
Now run:
make ubuntu
Just run:
make mac
At the end, on either Ubuntu or macOS, run this to print $PATH and add to top of your .zshrc:
make pathThis repo uses prek for Git hooks.
Install it with Homebrew and set up the hooks:
make hooksRun the hooks manually across the repo:
make hooks-runUpdate hook revisions:
make hooks-updateprek uses this repo's existing .pre-commit-config.yaml, so no config rename is required.