dotfiles

dotfiles

Configuration for macOS and Ubuntu

Security notice

Always review scripts before running them on your system. These installation scripts are open source and available for inspection on GitHub.

Quick Installation

macOS and Ubuntu

curl -fsSL dotfiles.klimenko.dk/install.sh | bash

The installer clones the repository to ~/Work/dotfiles. On a new Mac, install the tools afterwards with brew bundle --file ~/Work/dotfiles/Brewfile.

Security Note: Always review scripts before running them. View the source at github.com/romaklimenko/dotfiles.

What's Included

Zsh with oh-my-zsh

One shell setup for macOS and Ubuntu:

  • DEV_HOME (~/Work, one folder per workspace) and DOTFILES_HOME instead of overriding HOME
  • The standard oh-my-zsh aliases for git, ls and archives, plus Databricks shortcuts
  • Homebrew, cargo and ~/.local/bin first on PATH, in login shells too
  • The tailscale command from the Tailscale Mac app, when the app is installed
  • Tokens kept in the macOS Keychain and exported at shell start, never written to a file

tmux Configuration

Made for running several coding agents side by side:

  • Ctrl+Space prefix, one session per workspace opened with ws, one window per agent
  • tmux windows and panes named after the agent's session, or after the folder at a shell prompt
  • Ctrl+Space, w lists every workspace and agent, so you can switch between them
  • Copied text goes to the system clipboard

Neovim Configuration

VS Code-style editing shortcuts, multicursors, Telescope file tabs, and Git previews with Danish-keyboard alternatives (from romaklimenko/nvim)

  • Integrated as git submodule
  • Shared across macOS and Linux

Claude Code and Codex Configuration

One maintained instruction source for both agents

  • Shared AGENTS.md, with a one-line Claude include
  • Settings sync preserves unrelated local settings, hooks and Codex notifications

Automated Installation

One-line setup for new machines via dotfiles.klimenko.dk

  • A Brewfile with the command-line tools for the Mac
  • Landing page with light and dark themes, matching the design of klimenko.dk

Shell Reference

Personal roots

  • DEV_HOME is ~/Work and DOTFILES_HOME is ~/Work/dotfiles. HOME is left alone, because git, ssh and most other tools read it

Editor

  • EDITOR and VISUAL are nvim. vim and vi open Neovim

oh-my-zsh

  • robbyrussell theme with the git, common-aliases, extract, gh, uv, rust, npm, python and codex plugins, plus macos and brew on macOS or ubuntu on Ubuntu. bash gets the same alias names from shell/.bash_aliases. rm, cp and mv don't ask before they act, because coding agents run commands with these aliases and can't answer

Git Shortcuts (oh-my-zsh)

  • gst - git status
  • ga, gaa - git add, git add --all
  • gc - git commit --verbose. gcmsg "message" commits with a message
  • gp - git push
  • gl - git pull
  • gf - git fetch
  • gd, gds - git diff, git diff --staged
  • gco, gsw, gb, gba, gm - git checkout, switch, branch, branch --all, merge
  • grv - git remote --verbose
  • glog - git log as a graph, one line per commit. glol adds dates and authors

Navigation Shortcuts

  • cdh, hh - Go to $DEV_HOME
  • dots - Go to $DOTFILES_HOME
  • .., ..., .... - Go up 1, 2, or 3 directories
  • mkcd, take - Create a directory and go into it
  • ll, la, lt - List files: long, with hidden files, newest first

Databricks Shortcuts

  • dbcfg - Open ~/.databrickscfg in the editor
  • d - databricks. It replaces oh-my-zsh's d, which lists the directory stack
  • db - databricks bundle
  • dbd - databricks bundle deploy
  • dbv - databricks bundle validate
  • dbr - databricks bundle run
  • dbs - databricks bundle sync
  • dw - databricks workspace
  • dj - databricks jobs
  • dc - databricks clusters
  • dfs - databricks fs

tmux

  • ws - Open a workspace as a tmux session. ws backstage opens ~/Work/backstage, and Tab completes workspace names

Dotfiles Management

  • dotsync - Apply dotfiles from local repo to system (for testing without committing)
  • dotpull - Pull latest from remote repo and apply

Secrets (macOS)

  • keychain-set NAME - Store one line from stdin in the login Keychain
  • keychain-env NAME... - Export stored values as environment variables, from ~/.zshrc.local

Utility Functions

  • extract, x - Unpack an archive of any common type
  • myip, myip6 - Show external IPv4 or IPv6 address
  • ofd - Open the current folder in Finder (macOS)
  • omz reload - Reload zsh after a configuration change

Manual Installation

If you prefer to install manually or want more control over the process, follow the detailed instructions in the README on GitHub.

Updating

To update your dotfiles to the latest version, run dotpull in a shell. It pulls the repository and applies it. dotsync applies local changes without pulling.

dotpull

Support

For issues, questions, or contributions, please visit the GitHub repository.

Documentation

For detailed documentation, customization options, and troubleshooting tips, see the full README on GitHub.