Skip to content

peter-job/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Peter Job's dotfiles

My dotfiles for macOS and linux, managed with chezmoi.

Installation

Below are three options to install chezmoi and the dotfiles.

More options to install chezmoi can be found on the official website.

Option 1: Convenience install

Both chezmoi and the dotfiles can be installed with a single command using curl or wget:

GITHUB_USERNAME="peter-job"

# curl install
sh -c "$(curl -fsLS https://get.chezmoi.io)" -- init --apply $GITHUB_USERNAME

# wget install
sh -c "$(wget -qO- https://get.chezmoi.io)" -- init --apply $GITHUB_USERNAME

Note

A minimal container image (e.g. ubuntu base image in docker hub) might not have either. To install curl on a Debian-based system, run as root or with sudo:

apt update -y
apt install curl -y

Option 2: Package manager install of chezmoi

Install chezmoi

chezmoi can be installed using various package managers.

Popular package managers include:

Homebrew (macOS)

brew install chezmoi

APK (Alpine)

apk add chezmoi

APT (Debian-based systems)

Warning

Official repositories for Debian-based systems don't include the chezmoi package, meaning that it can't be installed via apt with default repositories. Use one of the other options listed here to install chezmoi.

Install dotfiles

With a working chezmoi installation, the dotfiles can be installed with:

GITHUB_USERNAME="peter-job"
chezmoi init $GITHUB_USERNAME

Option 3: GitHub install

The dotfiles can be installed directly from the repo via GitHub:

GITHUB_USERNAME="peter-job"
git clone "https://github.com/$GITHUB_USERNAME/dotfiles.git"
cd dotfiles
./install.sh

Managing dotfiles

Syncing brew packages

TODO: Write something about the brew bundle --global + symlink I created here.

Thoughts and considerations

I keep track of some thoughts and considerations to help me think through the decisions made in these dotfiles.

Credits

I learned and borrowed a lot from Felipe Santos' dotfiles and Tom Payne's dotfiles (the creator of chezmoi).