Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/janosh/macos-setup

Ain't no place like ~. Scripts and config files to setup macOS from scratch.
https://github.com/janosh/macos-setup

bash dotfiles macos shell-scripts zsh

Last synced: 28 days ago
JSON representation

Ain't no place like ~. Scripts and config files to setup macOS from scratch.

Awesome Lists containing this project

README

        

# macOS Setup Automation [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/janosh/macos-setup/main.svg)](https://results.pre-commit.ci/latest/github/janosh/macos-setup/main)

## Purpose

This repo contains shell scripts and config files which, when executed and copied into their respective destinations, bring a clean install of macOS into a working-ready state.

> Forked from [Vítor’s dotfiles](https://github.com/vitorgalvao/dotfiles) but quite diverged now.

## Usage

To run all automatic scripts in this repo:

```sh
zsh -c "$(curl -sSL 'https://raw.github.com/janosh/setup/main/setup/main.sh')"
```

Or, if you've already cloned the repo locally, simply run:

```sh
./setup/main.sh
```

To customize OS settings and complete the setup, run:

```sh
zsh -c "$(curl -sSL 'https://raw.github.com/janosh/setup/main/system-settings.sh')"
```

## Organization

The important files in this repo are:

```text
.
└── setup
├── main.sh
└── system-settings.sh
```

The files prefixed with numbers contain only functions. None of them will do anything if run on their own. `main.sh` imports all functions and runs them in sequence.

If you wish to run only parts of the setup process, source the appropriate script(s) and call the respective functions, e.g. `source scripts/2_apps.sh && brew_install`.