Skip to content

Latest commit

 

History

History
145 lines (99 loc) · 3.13 KB

README.md

File metadata and controls

145 lines (99 loc) · 3.13 KB

Moshe Avni's DotFiles

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

Usage

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

    xcode-select --install
  2. Install Homebrew

    /bin/bash -c \
      "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    brew update
    brew install git
  3. Clone this repo:

    [[ -d ~/Repos ]] || mkdir ~/Repos
    cd ~/Repos && git clone git@github.com:mosheavni/dotfiles.git && cd dotfiles
  4. Install brew dependencies (generated with brew bundle dump)

    brew bundle
  5. Open iTerm2 and start using a real terminal. Also, install shell intergrations

    cd ~/Repos/dotfiles
    curl -L https://iterm2.com/misc/install_shell_integration.sh | bash
  6. Install oh-my-zsh and its plugins

    sh -c \
      "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    
    git clone \
      https://github.com/TamCore/autoupdate-oh-my-zsh-plugins \
      ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/autoupdate
    
    git clone \
      https://github.com/zsh-users/zsh-syntax-highlighting.git \
      ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
    
    git clone \
       https://github.com/zsh-users/zsh-autosuggestions \
       ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  7. Install effuse:

    sudo gem install effuse
  8. Backup current files:

     cd ~
     mkdir dotfiles-backup
     for dotfile in .*;do
       if [[ -f ~/Repos/dotfiles/${dotfile} ]];then
         mv ~/${dotfile} ~/dotfiles-backup/${dotfile}
       fi
     done
  9. Run effuse to create the symlinks between the repo dir and the home dir: effuse

  10. Install npm packages

    npm install -g $(printf "%s " $(<Npmfile))
  11. Install pip dependencies

    pip3 install -r requirements.txt
  12. Set python version

PY_LATEST=$(pyenv latest -k 3)
pyenv install "$PY_LATEST"
pyenv global "$PY_LATEST"
  1. Add support for recently-installed fzf

    $(brew --prefix)/opt/fzf/install
  2. Open vim with minimal packer file, wait 1 minute for the packer.nvim repo to be cloned.

    nvim -u .config/nvim/first-init.lua
  3. Now Install the plugins and wait. (TreeSitter might take some time):

    :PackerInstall
  4. ???

  5. PROFIT

Additional stuff

  • Adjust dock and keyboard settings

  • Link iTerm2 and Karabiner profiles

  • Download and install docker

  • Change clipy shortcuts

  • Install magnet

  • Install Mac Media Key Forwarder

  • Install Snagit

  • Set Rhubarb file:

    echo 'machine api.github.com login moshe password <token>' >> ~/.netrc