Skip to content

Latest commit

 

History

History
109 lines (72 loc) · 2.52 KB

File metadata and controls

109 lines (72 loc) · 2.52 KB

Diego's dotfiles

These are my dotfiles. To learn more about dotfiles, see the awesome dotfiles list.

⚠️ Before using this project:

  • These scripts are intended for macOS and will not work on Linux or Windows WSL.
  • Use and remix at your own risk.
  • Check the script sources, understand what they do, and see if it applies to your system and tastes.

Installation

Remote execution

/bin/zsh -c "$(curl -fsSL https://raw.githubusercontent.com/dfernandez79/dotfiles/main/setup.sh)"

Local execution

Clone or download this repository, then run:

./setup.sh

For available options, run:

./setup.sh --help

The script will use Homebrew bundle to install Homebrew packages, macOS applications, and VSCode plugins.

The script will ask for your admin password multiple times during the installation. Before running it, please check the script source, and never run the zsh+curl mindlessly.

Some applications in the Apple Store bundle are paid and may only be installed if you purchased them. If an installation fails, ignore it, and the script will continue.

Options

You can skip optional package groups using command line arguments.

Local execution (recommended)

# Skip App Store applications
./setup.sh --skip-appstore

# Skip VSCode extensions
./setup.sh --skip-vscode

# Skip both
./setup.sh --skip-appstore --skip-vscode

Using environment variables

When running remotely via curl, you can use environment variables:

Variable Description
SKIP_APPSTORE Skip Mac App Store applications
SKIP_VSCODE Skip VSCode extensions

Examples:

# Skip App Store applications
SKIP_APPSTORE=1 /bin/zsh -c "$(curl -fsSL https://raw.githubusercontent.com/dfernandez79/dotfiles/main/setup.sh)"

# Skip VSCode extensions
SKIP_VSCODE=1 /bin/zsh -c "$(curl -fsSL https://raw.githubusercontent.com/dfernandez79/dotfiles/main/setup.sh)"

# Skip both
SKIP_APPSTORE=1 SKIP_VSCODE=1 /bin/zsh -c "$(curl -fsSL https://raw.githubusercontent.com/dfernandez79/dotfiles/main/setup.sh)"

Chezmoi Quick Reference

Edit the source state:

chezmoi edit ~/.zshrc

See what changes chezmoi would make:

chezmoi diff

Apply the changes:

chezmoi -v apply

Change to the chezmoi directory:

chezmoi cd