My OSX / Ubuntu dotfiles.
This repository is managed with chezmoi
.
The main attractions are:
- Sane macOS defaults from Mathias Bynens' Dotfiles
- Zsh with Prezto and some configurations from YADR
If chezmoi
is already installed:
chezmoi init --apply -S ~/.dotfiles https://github.com/gerev/dotfiles.git
For a complete setup, including chezmoi
:
sh -c "$(wget -qO- chezmoi.io/get)" -- init --apply -S ~/.dotfiles https://github.com/gerev/dotfiles.git
Complete setup, including chezmoi
:
sh -c "$(curl -fsSL chezmoi.io/get)" -- init --apply -S ~/.dotfiles https://github.com/gerev/dotfiles.git
- The
/scripts
directory contains all setup scripts that are run once on setup. - The
/bin
directory contains utility shell scripts. This directory is added to the path. - The
/config
directory just exists. If a config file doesn't need to go in~/
, reference it from the/config
directory. - The
/source
directory contains files that are sourced whenever a new shell is opened (in alphanumeric order, hence the funky names). - The
/test
directory contains unit tests for especially complicated bash functions. - The
/caches
directory contains cached files, used by some scripts or functions. It is created during setup.
- Minor XCode init via the run_once_10_osx_xcode.sh script
- Homebrew via the run_once_20_osx_homebrew.sh script
- Homebrew recipes via the run_once_30_osx_homebrew_recipes.sh script
- Homebrew casks via the run_once_30_osx_homebrew_casks.sh script
- iTerm2 theme in the run_once_40_osx_iterm2.sh script
- Final OS X setup step the run_once_40_osx_macos.sh script
- APT packages via the run_once_20_ubuntu_apt.sh script
- Node.js and Ruby via ASDF, NVM, and
rbenv
in the run_once_40_devtools.sh script - Zsh setup in the run_once_40_zsh.sh script
You need to have XCode or, at the very minimum, the XCode Command Line Tools, which are available as a much smaller download.
The easiest way to install the XCode Command Line Tools in OSX 10.9+ is to open up a terminal, type xcode-select --install
and follow the prompts.
Tested in OSX 10.15
Tested in Ubuntu 21.04
Copyright (c) 2022 Amir Grozki
Licensed under the MIT license.