Scripts to install and update a development environment.
To install these dotfiles on a new environment:
-
Install XCode Command Line Tools
xcode-select --install -
Clone the repository:
git clone https://github.com/rowan/dotfiles.git ~/.dotfiles -
Then, run install:
cd ~/.dotfilessource scripts/install.zsh
This:
- Creates a
$DOTFILESenvironment variable - Configures terminal (see:
/scripts/terminal.zsh) - Installs homebrew (see:
/scripts/homebrew.zsh)
The terminal configuration:
- Adds bin/ files to
$PATH(see:/apps/system/path.zsh) - Symlinks app/*.symlink files to
$HOME - Runs app/**/*.zsh scripts in order (see
/apps/termainal/zshrc.symlinkfor details):- First, runs app/**/path.zsh scripts (to setup
$PATHor similar) - Then, runs all other app/**/*.zsh scripts (excluding install.zsh or completion.zsh)
- Finally, runs app/**/completion.zsh scripts (to setup autocompletes)
- First, runs app/**/path.zsh scripts (to setup
- Restart terminal
This should now be running with new theme and with modified path, prompt etc.
Note: initially several of the files that are run when the terminal is started will fail, as dependencies such as yarn and rbenv have not been installed yet.
To update an existing environment:
Use the dot command:
dot
This uses the update script:
scripts/update.zsh
This:
- Sets macOS defaults
- Runs homebrew (including Mac App Store using
mas) - Cleans up deprecated Homebrew taps
- Runs app/**/install.zsh scripts
- Updates macOS
dot -uordot --upgrade- Also upgrades all Homebrew packages after updatedot -eordot --edit- Opens dotfiles directory in your editordot -hordot --help- Shows help message
Inspired by: https://github.com/holman/dotfiles