Skip to content

qnimbus/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

208 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧩 github.com/qnimbus/dotfiles

Bas' dotfiles, managed with chezmoi.

Install them with:

$ sh -c "$(curl -fsLS get.chezmoi.io/lb)" -- init -S "$HOME/.dotfiles" --apply qnimbus

Personal secrets are stored in 1Password and you'll need the 1Password CLI installed. Login to 1Password with:

$ eval $(op signin)

🚀 Quick start on a new system

1. Install chezmoi

Windows

winget install twpayne.chezmoi --source winget

⚠️ Windows users: Enable Developer Mode to allow chezmoi to create symlinks.

Go to SettingsPrivacy & SecurityFor developers → toggle Developer Mode on.

Alternatively, run this PowerShell command as Administrator:

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"

macOS

brew install chezmoi

Debian/Ubuntu

sudo apt update && sudo apt install -y chezmoi

2. Initialize from this repo

chezmoi -S "$HOME/.dotfiles" init --apply qnimbus

This clones the repo into ~/.dotfiles, renders all templates, and writes the resulting files into your home directory.


3. Verify and apply

chezmoi doctor          # check environment
chezmoi diff            # preview changes
chezmoi apply           # apply changes

Then open a new shell session to load everything.


⚙️ Updating later

chezmoi update          # pull latest changes from GitHub
chezmoi diff            # see what will change
chezmoi apply           # apply updates

🧠 Notes

  • Git configuration (~/.gitconfig) is templated:

    • Uses autocrlf = input and eol = lf for consistent line endings on all OSes.
    • Adds a Windows-only sshCommand override to force C:/Windows/System32/OpenSSH/ssh.exe.
  • PowerShell profile ($PROFILE) is managed via chezmoi and can include platform-specific logic.

  • Default editor for chezmoi is VS Code (code --wait --reuse-window).


🪄 Tips

  • Edit a managed file (templates included):

    chezmoi edit ~/.gitconfig
  • Show the rendered version:

    chezmoi cat ~/.gitconfig
  • Explore the source repo:

    chezmoi cd
  • On Unix/macOS, you can bootstrap with a single line:

    sh -c "$(curl -fsLS get.chezmoi.io/lb)" -- init -S "$HOME/.dotfiles" --apply qnimbus

🔐 1Password SSH Agent

This setup assumes the 1Password SSH Agent is enabled (Developer → Use SSH agent). Your ~/.ssh/config includes the 1Password/config automatically; chezmoi’s .gitconfig templates a Windows-specific sshCommand to use it.


🧹 Line-ending policy

Dotfiles are committed with LF endings for portability.

git config --global core.autocrlf input
git config --global core.eol lf

A .gitattributes file in the repo enforces this:

* text eol=lf

Author: Bas van Wetten License: MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published