Skip to content

benmezger/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ben Mezger's Dotfiles

My personal dotfiles.

You will find my dotfiles in the chezmoi directory.

Requirements

Installation

⚠️ Note: If you're not me, you won't have access to my 1Password account. To prevent chezmoi from applying files with secrets, set the SECRETS_OFF=1 environment variable. If you do not use this flag, chezmoi will fail when attempting to connect to my 1Password account ¯_(ツ)/¯._

SECRETS_OFF=1 chezmoi init https://github.com/benmezger/dotfiles.git -S ~/dotfiles

Applying changes

Use chezmoi to apply the dotfiles:

chezmoi apply -v

Environment Variables

The following environment variables can be used to configure chezmoi during initialization and when applying changes:

  • ASK: Set to 1 to enable prompts in chezmoi.
  • SECRETS_OFF: Set to 1 to disable 1Password integration (uses my personal secrets defined in .chezmoi.yaml).
  • DOTFILES_MINIMAL: Set to 1 to install the minimal version of the dotfiles.
  • WORKCONF: Set to 1 to enable work-related configurations (e.g., work email, etc.).

For example, run ASK=1 chezmoi apply to enable prompts or DOTFILES_MINIMAL=1 chezmoi apply to generate the minimal configuration.

Troubleshooting

Chezmoi Is Not Reloading the Configuration

Run chezmoi init <dotfiles-path> again. This will reload the configuration by regenerating chezmoi.yaml in $HOME/.config/chezmoi/chezmoi.yaml.

Sourcing Environment Variables With i3

For some reason, i3 sources .xprofile instead of .xinitrc. To get the GitHub plugin for i3status-rust to work, you need to set a variable in your .xprofile:

export I3RS_GITHUB_TOKEN="your-github-token"

Screenshots

macOS

Arch Linux

Weechat IRC

Emacs

Contributing

  1. Feel free to contribute and/or report any issues.