Bootstrap your local env in a single command!
This dotfiles repository is currently aimed for MacOS.
It's also suitable for use in GitHub Codespaces, Gitpod, VS Code Remote - Containers, or even Linux distributions, through the minimum mode.
Managed with chezmoi
, a dotfiles manager.
You can use the install script to install the dotfiles on any machine with a single command. Simply run the following command in your terminal:
sh -c "$(curl -fsSL https://get.owpac.com/dotfiles)"
Using the full URL
sh -c "$(curl -fsSL https://raw.githubusercontent.com/owpac/dotfiles/main/install.sh)"
Using wget
sh -c "$(wget -qO- https://raw.githubusercontent.com/owpac/dotfiles/main/install.sh)"
If you followed the steps above so far, you already finished installing the dotfiles. Have fun!
The below information is more for reference purposes.
TL;DR:
There are 3 possible modes, listed be order of priority:
- Minimum mode: it contains command prompt configuration.
- Personal mode: it is the base configuration for any other Profiles.
- Work mode: it is a derived Profile from the base, adding work email & other work related configurations.
Tip
There is an automatic Headless mode: if SSH_CLIENT
env var is detected during init, the headless mode installs .ssh/authorized_keys files.
The first step of installation will ask if you want a Minimum mode installation. The minimum mode only installs the needed dotfiles for the command prompt and is compatible with more distributions. It's also suit for ephemeral environment.
It will be enabled by default when running in a Dev Container.
The installation will ask if the machine is a Personal profile type. The personal profile is the base of every dotfiles configuration. All other profiles inherits from it.
The installation will ask if the machine is a Work profile type. The work profile is derived from the base and add some work related configurations.
The getting started step used the convenience script to install this dotfiles. There are some extra options that you can use to tweak the installation if you need.
It supports some environment variables:
DOTFILES_USER
: Defaults toowpac
.DOTFILES_HTTPS_URL
: Defaults tohttps://github.com/${DOTFILES_USER}/dotfiles.git
.DOTFILES_SSH_URL
: Defaults to"[email protected]:${DOTFILES_USER}/dotfiles.git
.DOTFILES_DIR
: Defaults to${HOME}/.dotfiles
.
For example, you can use it to clone and install the dotfiles repository in an other directory:
DOTFILES_DIR=.chezmoi sh -c "$(curl -fsSL https://get.owpac.com/dotfiles)"
If you prefer not to use the convenience script to install the dotfiles, you can also do it manually:
git clone https://github.com/owpac/dotfiles "$HOME/.dotfiles"
"$HOME/.dotfiles/install.sh"
- add script to init & install packages for raspberry pi