# First Install — Setup Automation

Generated from the current, non-archived catalog. These scripts cover the catalog, not your saved selection.
For a personal plan, choose items in [My setup](https://fc.dhrv.cloud/setup/) and use Share & export.

## Before running

Choose the target operating system and review every command. Start with apps only; use the settings variant only when you intend to apply all its settings. Settings may restart apps or require administrator access. Do not run both variants; the settings variant also installs the apps.

macOS requires Homebrew for brew commands; install it from https://brew.sh if the script reports it missing. Windows requires PowerShell 5.1 or later and App Installer (winget). Installation does not update checklist completion automatically. Verify each result and mark it Done yourself.

## macOS — apps only

[Download first-install-mac.sh](https://fc.dhrv.cloud/scripts/first-install-mac.sh)

```bash
#!/bin/bash
# First Install — macOS setup
# Review these commands before running them in Terminal.
set -e
if [ "$(uname -s)" != "Darwin" ]; then echo "This script requires macOS." >&2; exit 1; fi

# Install Homebrew if needed
if ! command -v brew >/dev/null 2>&1; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi

if ! command -v brew >/dev/null 2>&1; then
  if [ -x /opt/homebrew/bin/brew ]; then eval "$(/opt/homebrew/bin/brew shellenv)";
  elif [ -x /usr/local/bin/brew ]; then eval "$(/usr/local/bin/brew shellenv)"; fi
fi
command -v brew >/dev/null 2>&1 || { echo "Install Homebrew from https://brew.sh, then run this script again." >&2; exit 1; }

# Raycast
brew install --cask raycast

# 1Password
brew install --cask 1password

# BetterDisplay
brew install --cask betterdisplay

# CleanShot X
brew install --cask cleanshot

echo "Setup commands completed."
```

## macOS — apps and optional settings

[Download first-install-mac-with-settings.sh](https://fc.dhrv.cloud/scripts/first-install-mac-with-settings.sh)

```bash
#!/bin/bash
# First Install — macOS setup
# Review these commands before running them in Terminal.
set -e
if [ "$(uname -s)" != "Darwin" ]; then echo "This script requires macOS." >&2; exit 1; fi

# Install Homebrew if needed
if ! command -v brew >/dev/null 2>&1; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi

if ! command -v brew >/dev/null 2>&1; then
  if [ -x /opt/homebrew/bin/brew ]; then eval "$(/opt/homebrew/bin/brew shellenv)";
  elif [ -x /usr/local/bin/brew ]; then eval "$(/usr/local/bin/brew shellenv)"; fi
fi
command -v brew >/dev/null 2>&1 || { echo "Install Homebrew from https://brew.sh, then run this script again." >&2; exit 1; }

# Raycast
brew install --cask raycast

# 1Password
brew install --cask 1password

# BetterDisplay
brew install --cask betterdisplay

# CleanShot X
brew install --cask cleanshot

# Optional settings — may restart apps or require administrator access

# Auto-hide Dock
defaults write com.apple.dock autohide -bool true && killall Dock

# Show File Extensions in Finder
defaults write NSGlobalDomain AppleShowAllExtensions -bool true && killall Finder

# Tap to Click on Trackpad
defaults write com.apple.AppleMultitouchTrackpad Clicking -bool true && defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true

# Show Hidden Files
defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder

# Speed Up Key Repeat Rate
defaults write NSGlobalDomain KeyRepeat -int 2 && defaults write NSGlobalDomain InitialKeyRepeat -int 15

echo "Setup commands completed."
```

## Windows — apps only

[Download first-install-windows.ps1](https://fc.dhrv.cloud/scripts/first-install-windows.ps1)

```powershell
# First Install — Windows setup
# Run in Windows PowerShell 5.1 or later. Review commands and required permissions first.
$ErrorActionPreference = 'Stop'
if ($env:OS -ne 'Windows_NT') { throw 'This script requires Windows.' }

if (-not (Get-Command winget -ErrorAction SilentlyContinue)) { throw 'Install App Installer (winget), then run this script again.' }

# Raycast
winget install Raycast.Raycast
if ($LASTEXITCODE -ne 0) { throw 'App installation failed. Check the output above.' }

# Windows Terminal
winget install Microsoft.WindowsTerminal
if ($LASTEXITCODE -ne 0) { throw 'App installation failed. Check the output above.' }

# 7-Zip
winget install 7zip.7zip
if ($LASTEXITCODE -ne 0) { throw 'App installation failed. Check the output above.' }

# Everything
winget install voidtools.Everything
if ($LASTEXITCODE -ne 0) { throw 'App installation failed. Check the output above.' }

# ShareX
winget install ShareX.ShareX
if ($LASTEXITCODE -ne 0) { throw 'App installation failed. Check the output above.' }

Write-Output 'Setup commands completed.'
```

## Windows — apps and optional settings

[Download first-install-windows-with-settings.ps1](https://fc.dhrv.cloud/scripts/first-install-windows-with-settings.ps1)

```powershell
# First Install — Windows setup
# Run in Windows PowerShell 5.1 or later. Review commands and required permissions first.
$ErrorActionPreference = 'Stop'
if ($env:OS -ne 'Windows_NT') { throw 'This script requires Windows.' }

if (-not (Get-Command winget -ErrorAction SilentlyContinue)) { throw 'Install App Installer (winget), then run this script again.' }

# Raycast
winget install Raycast.Raycast
if ($LASTEXITCODE -ne 0) { throw 'App installation failed. Check the output above.' }

# Windows Terminal
winget install Microsoft.WindowsTerminal
if ($LASTEXITCODE -ne 0) { throw 'App installation failed. Check the output above.' }

# 7-Zip
winget install 7zip.7zip
if ($LASTEXITCODE -ne 0) { throw 'App installation failed. Check the output above.' }

# Everything
winget install voidtools.Everything
if ($LASTEXITCODE -ne 0) { throw 'App installation failed. Check the output above.' }

# ShareX
winget install ShareX.ShareX
if ($LASTEXITCODE -ne 0) { throw 'App installation failed. Check the output above.' }

# Optional settings — may restart apps or require administrator access

# Enable Dark Mode
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0; Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 0

# Show File Extensions
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name HideFileExt -Value 0; Stop-Process -Name explorer -Force; Start-Process explorer

# Show Hidden Files
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Hidden -Value 1; Stop-Process -Name explorer -Force; Start-Process explorer

Write-Output 'Setup commands completed.'
```
