Skip to content
cr0tPublic

About

Personal set of dotfiles

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

cr0t's dotfiles

A set of configuration files I prefer to have across my computers.

Installation

Files are symlinked into place by setup.sh, which has worked for years on both macOS and Linux:

git clone https://github.com/cr0t/dotfiles.git ~/.dotfiles
~/.dotfiles/setup.sh link

Commands:

Command What it does
link Symlinks the dotfiles into $HOME; skips anything that exists
status Shows every entry as ok, missing or conflict
diff Shows diffs between existing files and the ones in this repo
clean Removes the symlinks created by this repo (never touches real files)

Options:

  • -f, --force (link): back up conflicting files, then replace them
  • -n, --dry-run: print what would happen without changing anything

Existing configs (e.g., Omarchy)

Distros and apps often ship their own configs (Omarchy does for Alacritty, Neovim, tmux, etc.). By default link skips them, so nothing is lost. To see what differs and then take over:

~/.dotfiles/setup.sh status        # what is linked, missing or in conflict
~/.dotfiles/setup.sh diff          # existing files vs. the ones in this repo
~/.dotfiles/setup.sh link --force  # back up conflicts, then link

Backups go to ~/.dotfiles-backup/<timestamp>/ (override with DOTFILES_BACKUP_DIR) and keep their path relative to $HOME, so restoring is a plain mv.

link and status also warn when an alternate location is present next to a file we manage (e.g., ~/.config/tmux/tmux.conf next to ~/.tmux.conf), since the tool may load it instead of, or in addition to, ours. For tmux, check what was loaded with tmux display -p '#{config_files}'.

Run ~/.dotfiles/setup.sh clean to remove the links. It only removes symlinks that point into this repo and leaves everything else alone.

macOS tweaks

Speed up the keyboard repeat (see macos-defaults.com for more options):

defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1         # normal minimum is 2 (30 ms)

Optionally, make fonts in Alacritty less bold:

defaults write org.alacritty AppleFontSmoothing -int 0

(When installed) Karabiner-Elements is configured to use CapsLock as CTRL on all keyboards.

Brew apps

On a fresh macOS machine, run brew bundle --no-lock in ~/.dotfiles to install the apps and utilities from the Brewfile.

Tip

Some apps (e.g., chromedriver) lack signatures modern macOS requires, and the right click → "Open" trick no longer works. Remove the quarantine flag:

xattr -d com.apple.quarantine $(which chromedriver)

Docker CLI and Colima

We use the free Docker CLI with Colima as the runtime instead of Docker Desktop (all packages are in the Brewfile). Save this as ~/.docker/config.json:

{
  "auths": {},
  "cliPluginsExtraDirs": ["/opt/homebrew/lib/docker/cli-plugins"],
  "credsStore": "osxkeychain",
  "currentContext": "colima"
}

Run colima start and wait for the VM before using Docker commands. To push to GitHub Container Registry, log in with a token that has the write:packages scope (generate one here):

docker login --username cr0t ghcr.io

Based on this blog post.

Languages and tools: mise

We use mise for language runtimes and tools. The global config.toml (Erlang, Elixir, Node.js, Ruby, Zig) is symlinked to ~/.config/mise/config.toml by setup.sh link.

The tools are declared with lazy = true (requires mise v2026.9.0 or newer): each one is installed the first time you run one of its commands. A bare mise install skips lazy tools, so pass --include-lazy to install everything defined in the config up front:

env KERL_BUILD_DOCS=yes KERL_CONFIGURE_OPTIONS="--without-javac" mise install --include-lazy

Note

KERL_BUILD_DOCS=yes builds the Erlang docs, so h :rand.uniform (and similar) works in IEx.

Note

Lazy tools rely on mise's shims, so keep activate_shims enabled (it is by default).

To bump a version, run mise use --global <tool>@<version> and commit the updated config.toml.

Neovim/Vim

Checklist:

  • Nerd Fonts (MesloLGS)
  • Languages installed via mise (Elixir, Erlang, Node.js, Ruby), so Mason can set up all the LSPs

On Ubuntu, apt's Neovim is old (~0.7), so install a recent one with mise:

mise use --global neovim@stable

See docs/NVIM.md for details.

Setup .ssh

Create ~/.ssh and set proper permissions (see also docs/SSH.md):

chmod 700 ~/.ssh
chmod -R go= ~/.ssh
chmod -w ~/.ssh/id_rsa* ~/.ssh/id_ed*

Directory littles

My tiny scripts and helpers, mostly for personal needs. Read the source and install what you need into a bin directory, or add the directory to PATH:

export PATH="$PATH:$HOME/.dotfiles/littles"

~/.local/bin is on $PATH too: put machine-specific or temporary scripts there, so they stay out of this repo.

Local environment variables and shell setup

~/.config/fish/config.fish is not overwritten by these dotfiles, so it stays local to the machine. Put machine-specific variables there:

if status is-interactive
    set -x GITLAB_TOKEN 'glpat-***'
    set -x KUBECONFIG "$HOME/.kube/config-company:$HOME/.kube/config-homelab"
    set -x HOMEBREW_NO_ENV_HINTS 1
    set -x EDITOR nvim
end

Extra

See docs/EXTRA.md for more notes, or docs/KUBERNETES.md for my k8s cheat sheet.

About

Personal set of dotfiles

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages