8000 GitHub - jdahm/dotfiles: 💻 My computing environment · GitHub
[go: up one dir, main page]

Skip to content
jdahmPublic

About

💻 My computing environment

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

697 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

My config for fish, git, Helix, Zed, Ghostty and friends, for macOS and Linux. mise links the files into place and installs the tools.

Setup

On Linux, install git, curl, fish and a C compiler first (apt install git curl fish build-essential on Debian or Ubuntu). On macOS, install Homebrew.

curl -fsSL https://mise.run | sh
~/.local/bin/mise bootstrap --from https://github.com/jdahm/dotfiles.git --from-dir ~/dotfiles --config-dir mise --prompt-vars

This clones the repo to ~/dotfiles and links ~/.config/mise to ~/dotfiles/mise. --prompt-vars asks once for your git name, personal email and signing key, for ~/.config/git/identity and ~/.config/jj/config.toml. Change them later with mise vars prompt. Later, run mise bootstrap again after changing the config. It's safe to repeat. It:

  • links the config files into ~ and ~/.config (the [dotfiles] list in mise/config.toml)
  • installs the command-line tools listed in mise/config.toml
  • runs the bootstrap task in mise/config.toml, which installs Claude Code, rustup, uv, Harlequin and Ansible

Then finish by hand:

  1. On macOS, install the apps and remaining formulae: brew bundle --global. If it stops at rexdiff, run brew trust rednafi/rexdiff and run it again. Then run rexdiff install, which writes ~/.config/rex/rexdiff_toggle.lua.
  2. Build Helix: helix/install.sh. It builds a pinned commit from source.
  3. Add your signing key to ~/.config/git/allowed_signers, so git can check signed commits:
    you@example.com namespaces="git" ssh-ed25519 AAAA…
    
  4. On a work machine, use the work email in work repos. git/config includes ~/.config/git/local if it exists, so write that file and the one it points to:
    # ~/.config/git/local
    [includeIf "hasconfig:remote.*.url:git@github.com:your-org/**"]
    	path = ~/.config/git/work
    # ~/.config/git/work
    [user]
    	email = you@work.example
    Add the work email to ~/.config/git/allowed_signers too. jj can't match on remotes, so it needs the work repo folders listed in ~/.config/jj/conf.d/work.toml. It matches whole folders, so list each worktree folder too:
    --when.repositories = ["~/work-repo", "~/work-repo-review"]
    
    [user]
    email = "you@work.example"
  5. In Rex, set the terminal font to JetBrainsMono Nerd Font (Settings › Terminal › Typography). Rex keeps it in the app, not in a file.

Where tools come from

Source What Update with
mise/config.toml most command-line tools (go, node, gh, jq, kubectl, …) mise upgrade
Their own installers, in the bootstrap task in mise/config.toml rustup, uv, mise, Claude Code rustup update, uv self update, mise self-update, claude update
uv Harlequin, Ansible uv tool upgrade --all
homebrew/Brewfile (macOS only) apps, fonts, and a few formulae like git, fish and libpq brew bundle --global
helix/install.sh Helix, built from source change the commit in the script and rerun it

mise tools are on PATH through mise's shims, so scripts and editors see them too. Tools I don't install by default, but might want again, are in extra-tools.md.

Files

Each app has its own folder, and each file keeps the name it has where it's linked. The top level only holds the docs.

Folder Linked to
fish/ ~/.config/fish/
zsh/ ~/.zprofile< 5A3B /code>
git/ ~/.config/git/
helix/ ~/.config/helix/config.toml and languages.toml (and install.sh builds Helix)
mise/ ~/.config/mise/ (the whole folder)
starship/ ~/.config/starship.toml
atuin/ ~/.config/atuin/config.toml
jj/ ~/.config/jj/config.toml (rendered from a template)
vim/, ideavim/ ~/.vimrc, ~/.ideavimrc
homebrew/ ~/.Brewfile (macOS only)
ghostty/ ~/.config/ghostty/config (macOS only)
zed/ ~/.config/zed/ (macOS only)
gnupg/ ~/.gnupg/gpg-agent.conf (macOS only)
rex/ ~/.config/rex/init.lua and rexdiff.lua (macOS only)

Machine-specific fish config goes in ~/.config/fish/local.fish, which config.fish sources if it exists.

About

💻 My computing environment

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0