dotfiles

💻 This is my dotfiles for my system customizations and to setup my development environment

MIT License

Stars
16

dotfiles

This is my dotfiles for my system customizations and to setup my development environment.

What's included ?

  • Homebrew
    • Installs Homebrew AND brew install's all of my favourite packages
    • Uses homebrew-cask to install all my applications
  • rbenv
  • macOS
    • Installs applications via the Mac App Store
  • Git
    • Git config
    • Global gitignore
  • Vim config
  • SSH config
  • Oh-My-Zsh
    • Robbyrussell theme
    • Aliases
  • Arthur iTerm2 colors theme
  • VS Code configuration

Before starting on Apple M1 Chip

$ softwareupdate --install-rosetta

Find the Terminal app in your Finder, press ⌘ + i, check Open using Rosetta and reopen the Terminal.

How to use it ?

Clone the project in your home directory :

$ cd ~
$ xcode-select --install
$ git clone https://github.com/guillaumebriday/dotfiles.git && cd dotfiles
$ find ~/dotfiles -name '*.sh' | xargs -I file chmod u+x file # Make sure you can execute the scripts

Before running any commands, you must edit files according to your needs.

For exemple, open the brew/Brewfile and remove applications you don't want to install from the list.

At the end of the installation, restart your computer.

Installation

Brew

Packages and applications are installed with https://brew.sh/.

$ brew/brew.sh

It will only install important packages.

ZSH

$ zsh/zsh.sh

Then complete the n installation for sudo privileges.

Sensible macOS defaults

$ macOS/macos.sh

Git

$ git/git.sh

Vim

$ vim/vim.sh

SSH

$ ssh/ssh.sh

And create an SSH key:

$ ssh-keygen -t ed25519 -C "[email protected]"
$ eval "$(ssh-agent -s)"
$ ssh-add --apple-use-keychain ~/.ssh/id_ed25519

rbenv

Ruby is manage with rbenv.

$ ruby/rbenv.sh

iTerm2

Close iTerm2 before running this command:

$ iTerm2/iterm.sh

Install all applications

$ brew bundle --file=brew/Brewfile

VS Code

Edit the file /Applications/VSCodium.app/Contents/Resources/app/product.json and replace the key extensionsGallery with:

"extensionsGallery": {
  "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
  "cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
  "itemUrl": "https://marketplace.visualstudio.com/items"
}
$ vscode/vscode.sh