Skip to content

mosheavni/dotfiles

Repository files navigation

Moshe Avni's DotFiles

macOS Shell Editor Terminal Stow Last Commit
Lint Tests

Table of Contents

Usage

(also, how to bootstrap a brand new Mac laptop)

  1. Install xcode-select (for basically everything…)

    xcode-select --install
  2. Install Homebrew

    /bin/bash -c \
      "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    eval "$(/opt/homebrew/bin/brew shellenv)" # to make brew available before we load `~/.zshrc` that has "$PATH"
    brew update
    brew install git stow
  3. Clone this repository:

    [[ -d ~/Repos ]] || mkdir ~/Repos
    cd ~ && git clone git@github.com:mosheavni/dotfiles.git .dotfiles && cd .dotfiles
  4. Install antidote

    git clone --depth=1 https://github.com/mattmc3/antidote.git ${ZDOTDIR:-~}/.antidote
  5. Stow the .dotfiles and reload the shell:

    ./start.sh
    source ~/.zshrc
  6. Install brew dependencies (generated with brew bundle dump)

    brew bundle
  7. Open Wezterm and start using a real terminal.

  8. Install asdf-vm plugins

    cd ~/.dotfiles
    while read -r plugin_line; do
      asdf plugin add $(awk '{print $1}' <<<"$plugin_line")
    done <asdf/.tool-versions
    asdf install
  9. Add support for recently installed fzf

    $(brew --prefix)/opt/fzf/install
  10. Login to gh cli

    gh auth login --web -h github.com
  11. Install gh GitHub cli copilot extension

    gh extension install github/gh-copilot --force
  12. ???

  13. PROFIT

Usage (just NVIM)

Install requires Neovim 0.10+. Always review the code before installing a configuration.

Clone the repository and install the plugins:

git clone git@github.com:mosheavni/dotfiles ~/.config/mosheavni/dotfiles

Open Neovim with this config:

NVIM_APPNAME=mosheavni/dotfiles/nvim/.config/nvim nvim

Additional stuff

  • Adjust dock and keyboard settings

  • Download and install Docker

  • Change clipy (for snippets) and maccy (for clipboard) shortcuts, and load snippets

  • Install magnet

  • Install OneNote

  • Install shottr

Troubleshooting

Reinstalling Node.js dependencies

while read -r npm_package; do
  echo "$npm_package"
  npm i -g "$npm_package"
done <~/.dotfiles/node/.default-npm-packages

Reinstalling Python dependencies

pip install --user -r ~/.dotfiles/requirements.txt

Remove TreeSitter parsers

rm -rf ~/.local/share/nvim/treesitter

Then reopen nvim and run :TSUpdate

About

😎

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages