GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - motlin/dotfiles: Craig Motlin's command line configuration files

BranchesTags
Open more actions menu

Latest commit

 

History

610 Commits
610 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
bin
bin
 
 
config
config
 
 
dotbot @ ad9511e
dotbot @ ad9511e
 
 
iterm2
iterm2
 
 
scripts
scripts
 
 
ssh
ssh
 
 
vim
vim
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.markdownlint-cli2.jsonc
.markdownlint-cli2.jsonc
 
 
.markdownlint.jsonc
.markdownlint.jsonc
 
 
.oxfmtrc.json
.oxfmtrc.json
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
.yamllint.yaml
.yamllint.yaml
 
 
2s.conf.yaml
2s.conf.yaml
 
 
README.md
README.md
 
 
Xdefaults
Xdefaults
 
 
alias
alias
 
 
alias.mac
alias.mac
 
 
bash_profile
bash_profile
 
 
bashrc
bashrc
 
 
env
env
 
 
env.2s
env.2s
 
 
env.mac
env.mac
 
 
hushlogin
hushlogin
 
 
install
install
 
 
install.conf.yaml
install.conf.yaml
 
 
iterm2_shell_integration.zsh
iterm2_shell_integration.zsh
 
 
justfile
justfile
 
 
mac.conf.yaml
mac.conf.yaml
 
 
minttyrc
minttyrc
 
 
mise.toml
mise.toml
 
 
p10k.2s
p10k.2s
 
 
p10k.zsh
p10k.zsh
 
 
ripgreprc
ripgreprc
 
 
screenrc
screenrc
 
 
secrets.tpl.example
secrets.tpl.example
 
 
vimrc
vimrc
 
 
zprofile
zprofile
 
 
zprofile.mac
zprofile.mac
 
 
zshenv
zshenv
 
 
zshrc
zshrc
 
 
zshrc.2s
zshrc.2s
 
 
zshrc.mac
zshrc.mac
 
 

Repository files navigation

🏠 Understanding This Dotbot Repository

This repository uses Dotbot to manage dotfiles. Dotbot creates symlinks from the home directory to files in the dotfiles repository based on YAML configuration. Dotbot competes with Chezmoi but is simpler, avoiding the need for templating.

πŸš€ Installation

Clone this repository into ~/.dotfiles and run the install script:

git clone https://github.com/motlin/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
./install mac

Use mac on macOS.

Use ./install --verbose mac to stream every Dotbot shell command while diagnosing an installation failure.

This works even on a freshly installed system.

If mise is not already available, the installer bootstraps it with the official https://mise.run installer before applying the Dotbot configuration. The restricted 2s profile never downloads mise or runs mise install; it uses tools supplied through the work environment instead.

βš™οΈ How It Works

The standard Dotbot setup uses ./install to run a single configuration file on every host. However, this repository follows the multiple-target pattern to support environment-specific configurations.

When you run ./install mac, the script processes both:

  1. install.conf.yaml (always runs first)
  2. mac.conf.yaml (environment-specific)

The base configuration is implicitβ€”you specify only the environment name, not the base config.

🌍 Multi-Environment Support

The repository supports multiple environments through separate configuration files:

  • install.conf.yaml - Base configuration applied to all environments
  • mac.conf.yaml - My macOS-specific configurations
  • Additional *.conf.yaml files can be created for other environments

mac.conf.yaml is my only public environment-specific config, so you'll have to use your imagination and pretend there are several. At work, I maintain a private branch where ./install work would apply both base and work-specific configurations.

Configurations apply in order, allowing environment-specific settings to override the base.

Broot is macOS-only in the public profiles: the Brewfile installs it, and mac.conf.yaml generates the Zsh launcher. The shared Bash and Zsh configurations source a launcher only when it exists, so other environments leave br undefined. A Linux profile must install broot and generate the corresponding launcher before br becomes available there.

πŸ”§ Local Override Pattern

A key design in my dotfiles is the use of .local files for environment-specific overrides. The base configuration files source their .local counterparts if they exist:

  • .zshrc β†’ sources .zshrc.local
  • .alias β†’ sources .alias.local
  • .env β†’ sources .env.local
  • .config/git/config β†’ includes .config/git/config.local

The environment-specific configurations (like mac.conf.yaml) create these .local symlinks pointing to actual environment files:

~/.alias.local:
    path: alias.mac
~/.env.local:
    path: env.mac
~/.zshrc.local:
    path: zshrc.mac

This supports environment-specific customizations without introducing the complexity of git branches or templates.

πŸš€ Dotbot features

My configuration files use standard Dotbot features:

  1. πŸ“¦ Update git submodules (Oh My Zsh plugins, Powerlevel10k theme, vim plugins)
  2. πŸ“‚ Create directories (~/.bin)
  3. πŸ”— Create symlinks from the home directory to files in this repository
  4. 🧹 Cleans up broken symlinks

You can also run shell commands during installation. I use this in mac.conf.yaml to inject 1Password secrets.

πŸ“ Configuration Files Overview

🐚 Shell Configuration

.zshrc - Main Zsh configuration that sets up Oh My Zsh with the Powerlevel10k theme, configures shell behavior (history sharing, case-sensitive completion, emacs keybindings), and loads various plugins including zsh-autosuggestions, fzf, and syntax highlighting. It also integrates direnv, zoxide (replacing cd), and sources local overrides.

.p10k.zsh - Powerlevel10k theme configuration that defines the prompt layout with segments for OS icon, directory, and Git status on the left, and command status/execution time on the right.

πŸ› οΈ Development Tools

.config/git/config (like .gitconfig) - See my blog post which explains my customizations in depth. Includes aliases, advanced log formatting with graph visualization, aggressive optimizations, automatic stashing during merges/rebases, and integration with git-absorb for fixup commits.

.vimrc - Vim configuration that sets up pathogen for plugin management, enables quality-of-life improvements (smart searching, visual cues for whitespace, tab completion), and defines custom key mappings. Configures the inkpot color scheme and includes functions for viewing diffs.

🌐 Environment and Aliases

.alias - Defines shell aliases for common commands including navigation (up, up2), ls commands using eza with icons, Git shortcuts, and replacements like bat for cat. Also includes utility aliases for lazygit, just, and timestamp formatting.

.env - Minimal environment configuration that extends PATH with local directories, sets vim as the default editor, configures less as the pager with specific options, and points to a ripgrep configuration file.

πŸ“¦ Other Configurations

  • πŸ” .ripgreprc - Ripgrep search tool configuration
  • πŸ“ config/ - Directory containing configurations for various tools:
    • πŸ¦‡ bat/ - bat syntax highlighting pager
    • ⚑ just/ - just command runner
    • πŸ”§ mise/ - mise development environment manager
    • πŸ” 1Password/ - SSH agent integration

About

Craig Motlin's command line configuration files

Resources

Readme
Activity

Stars

7 stars

Watchers

4 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.