An open API service indexing awesome lists of open source software.

https://github.com/linusrachlis/dotfiles


https://github.com/linusrachlis/dotfiles

Last synced: 14 days ago
JSON representation

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
```