https://github.com/linusrachlis/dotfiles
https://github.com/linusrachlis/dotfiles
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/linusrachlis/dotfiles
- Owner: linusrachlis
- Created: 2024-05-27T18:28:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2026-05-29T16:58:26.000Z (22 days ago)
- Last Synced: 2026-05-29T18:22:53.523Z (22 days ago)
- Language: Lua
- Size: 218 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dotfiles git repo
The approach here is based on this article:
https://mjones44.medium.com/storing-dotfiles-in-a-git-repository-53f765c0005d
## New machine setup
1. Install [Homebrew](https://brew.sh/)
2. Install [oh-my-zsh](https://ohmyz.sh/#install)
3. Install Homebrew packages:
```sh
brew update
brew install \
# CLI tools
git neovim fnm lazygit \
# Neovim dependencies
fzf ripgrep luarocks tree-sitter-cli \
# Minmal set of LSP servers
lua-language-server typescript-language-server vscode-langservers-extracted
brew install --cask rectangle
fnm install --lts
```
4. Set up dotfiles repo
```sh
git clone --bare git@github.com:linusrachlis/dotfiles.git $HOME/.dotfiles
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME config --local status.showUntrackedFiles no
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME checkout
# For some reason remote tracking branches are not set up automatically with this setup
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME fetch origin
# Check if the remote tracking branch is set up correctly
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME branch -r
# If not, remove and re-add the remote, then fetch again
# Run this whenever needed after pulling updates
source dotfiles_bootstrap.sh
```