Personal configuration for initializing a new Apple Silicon Mac, Ubuntu or Debian host, or WSL2 environment. The repository initializes machines; it is not a continuous multi-host synchronization system.
Complete machine setup is agent-assisted. The tracked deploy-dotfiles skill
audits the target, follows the installation contracts in this README, links
explicit GNU Stow packages, and verifies the result. The repository deliberately
does not provide or maintain a standalone bootstrap program.
Tracked dotfiles remain configuration source. Module-owned installers handle
the few operations that need deterministic local behavior, while ./check
provides the repository-wide validation gate. Stow runs from the repository
root, where .stowrc disables tree folding so tools cannot write runtime data
back through a linked directory.
Terminal applications use their native Gruvbox themes or plugins rather than a generated shared theme. Prefer colors from the original Gruvbox palette; use Gruvbox Material only for roles the original palette does not provide or when a softer Material variant is intentional. Non-palette colors require a documented functional reason.
The tmux package keeps tmux-native snapshots of both palettes under
.config/tmux/palettes. Each snapshot pins its upstream source revision. Review
the upstream diff before updating a snapshot; palette updates are never applied
automatically.
Clone the repository, enter it, and start an agent that supports repository skills:
git clone https://github.com/hza2002/dotfiles.git ~/dotfiles
cd ~/dotfilesAsk the agent to use $deploy-dotfiles to initialize the machine. It presents
the applicable deployment contract and waits for approval before changing the
system. Git and a repository-skill-aware agent are the only entry-point
requirements; the skill handles platform-specific requirements and resumable
deployment.
The Zsh package targets Zsh 5.9 or newer on macOS and Linux. macOS uses the
system /bin/zsh; installing a second Homebrew Zsh is unnecessary.
.zshenvcontains the small environment shared by every Zsh invocation..zprofileinitializes the login environment andPATH..zshrcowns interactive behavior, plugins, aliases, key bindings, and platform-specific integrations..config/fzfcontains the fzf shell integration and preview script.
The shell initializes Starship when it is installed. Starship configuration is owned by its separate package because Yazi consumes it too.
Read these files for the current behavior. Plugin names, aliases, key bindings, and optional tool paths are intentionally not duplicated here.
The deployment contract for this package is:
- use the system Zsh and Homebrew dependencies on macOS, and apt on Ubuntu or Debian;
- install Eza as the interactive
lsreplacement; - install incompatible or unavailable Linux tools from pinned upstream releases
under
~/.local, with commands exposed through~/.local/bin; - install Oh My Zsh and the custom plugins below by following each upstream repository's current installation and update instructions;
- install Jenv, a default JDK, Gradle, Maven, Ant, and Miniconda;
- stop for user input instead of replacing an unknown existing installation.
| Plugin | Upstream repository |
|---|---|
autoupdate |
https://github.com/TamCore/autoupdate-oh-my-zsh-plugins |
fzf-tab |
https://github.com/Aloxaf/fzf-tab |
you-should-use |
https://github.com/MichaelAquilina/zsh-you-should-use |
zsh-abbr |
https://github.com/olets/zsh-abbr |
zsh-autosuggestions |
https://github.com/zsh-users/zsh-autosuggestions |
zsh-completions |
https://github.com/zsh-users/zsh-completions |
zsh-history-substring-search |
https://github.com/zsh-users/zsh-history-substring-search |
zsh-lazyload |
https://github.com/qoomon/zsh-lazyload |
zsh-syntax-highlighting |
https://github.com/zsh-users/zsh-syntax-highlighting |
zsh-vi-mode |
https://github.com/jeffreytse/zsh-vi-mode |
These repositories currently follow their upstream default branches; the
dotfiles do not pin their commits. .zshrc remains the source of
truth for which plugins are enabled.
The Starship package provides the shared Gruvbox prompt configuration used by Zsh and Yazi. Install Starship before linking the package on macOS, Ubuntu, Debian, or WSL.
The btop package selects its built-in gruvbox_dark_v2 theme and disables the
theme background so terminal transparency remains visible. Its tracked config
also disables automatic saves; persistent changes must be made in the dotfiles
instead of through btop's options menu. Install btop with Homebrew on macOS or
apt on Ubuntu or Debian.
The Bat package keeps the custom Gruvbox Material theme used by the shell and
file previews. Use Homebrew on macOS and apt on Ubuntu 24.04 or newer. Ubuntu's
package may expose only batcat; when bat is absent, deployment must link
~/.local/bin/bat to the installed batcat executable.
After linking the package, run bat cache --build and verify that
gruvbox-material-dark appears in bat --list-themes. The generated cache is
runtime data and must not be stored in this repository.
The GnuPG package configures pinentry for signed Git commits. It uses the native
macOS prompt in a regular local shell and the terminal prompt in tmux, over SSH,
and on Linux or WSL. Install GnuPG plus pinentry-mac on macOS, or GnuPG plus
pinentry-curses on Ubuntu or Debian.
Before linking the package, create ~/.gnupg with mode 0700. After linking,
restart the agent with gpgconf --kill gpg-agent and verify a signed commit or
equivalent signing operation. Private keys, trust data, and the selected Git
signing key are machine state and must not be stored in this repository.
The tmux package targets tmux 3.4 or newer. tmux.conf
is an ordered entrypoint; the files in conf own
options, bindings, theme inputs, plugins, and final UI overrides. Ordinary
reloads skip plugin initialization, so restart tmux after changing theme inputs
or plugin declarations. The scripts directory includes a Ghostty-only cursor
sampling helper: when a selected TUI pane hides its hardware cursor, tmux briefly
exposes the pane center so Ghostty can animate the cursor trail to its destination.
TPM declares and loads hza2002/tmux-agent-sidebar. On development machines,
~/.config/tmux/plugins/tmux-agent-sidebar may instead link to the maintained
local working copy, so source and release builds are available immediately.
While that link is active, update the working copy directly rather than asking
TPM to update the sidebar because TPM follows the link into the checkout. Local
source changes and reviewed upstream merges take effect only after
cargo build --release; the runtime never checks or downloads GitHub Releases.
Copy mode targets the clipboard of the attached terminal client through OSC 52, including through SSH and nested tmux sessions. Unsupported terminal clients still retain the selection in tmux's paste buffer.
The deployment contract for this package is to install tmux, TPM, the TPM
plugins declared in conf/plugins.conf, sesh, and fzf; optionally replace the
TPM sidebar checkout with the maintained local working-copy link for development;
build its release binary with Cargo; then configure sidebar hooks for installed
agents. Macism is required only on macOS.
Clipboard integration does not require platform-specific packages; terminal
clients must permit OSC 52 writes.
The Yazi package targets Yazi 26.5.6 or newer on macOS and Linux. The five
tracked files under yazi/.config/yazi are configuration
source; plugins and flavors are generated runtime data and must not be stored in
the repository.
The deployment contract is to use Homebrew on macOS and Yazi's
official signed stable APT repository on Ubuntu or Debian. Install the complete
integration set: file, Git, Starship, Lazygit, Ouch, FFmpeg, 7-Zip, jq, Poppler,
fd, ripgrep, fzf 0.53 or newer, zoxide, resvg, and ImageMagick 7.1.1 or newer.
After Stow links the package, run ya pkg install to install the revisions and
hashes pinned in package.toml. Linux desktop
systems additionally need a supported clipboard helper; headless hosts do not.
The Neovim package targets Neovim 0.12 or newer. Use Homebrew on macOS and
Neovim's official stable release archive under ~/.local on Linux or WSL; do
not use the Ubuntu or Debian package. lazyvim.json
and the files under lua/plugins are the source
of truth for enabled language support and external toolchains.
The deployment contract is to install the base command-line
dependencies, link the package, synchronize the revisions pinned in
lazy-lock.json, and wait for all Mason
packages to finish installing. Plugin and tool installation must complete before
the module is reported as installed rather than being deferred to first launch.
The Automation, Bin, and IdeaVim packages are installed only on a personal
macOS workstation. Deployment must skip them on Linux, WSL, and headless hosts.
They require the Homebrew formulas uv and fileicon; the casks
google-chrome, microsoft-edge, and jetbrains-toolbox; and the
bing-rewards uv tool. gruvifier resolves gruvbox-factory@latest through
uvx when explicitly run.
Before bing can run, the Edge profiles Default and Profile 2 must exist,
be signed in to Bing, and the private ~/.config/bing-rewards/config.json must
select Edge as its browser. The directories ~/Pictures/icons and
~/Pictures/unreviewed are also user-owned machine state. Deployment must not
create, populate, or store any of these files in Git.
After linking Automation, run
~/.local/libexec/install-chrome-icon-agent to render the current home directory
into ~/Library/LaunchAgents/com.ghot.chrome-custom-icon.plist. Register that
generated plist in the current GUI domain and verify the LaunchAgent. The
generated plist is machine state and is not stored in Git. After installing the
selected JetBrains IDEs, install the IdeaVIM and IdeaVimExtension plugins in
each IDE, link IdeaVim, and reload .ideavimrc.
Deployment installs these commands but never runs bing, gruvifier, or
ricon. They respectively control Edge, modify images, and request elevated
access to change application icons, so each remains an explicit user action.
The Yabai package configures the macOS window-management stack. Deployment
requires the Homebrew formulas asmvik/formulae/yabai,
asmvik/formulae/skhd, felixkratz/formulae/borders, and jq. The qualified
formulas come from two non-core upstream maintainer taps; the agent must show
their sources and ask before adding them.
Grant Accessibility access to yabai and skhd, and Screen Recording access to yabai. The scripting addition also requires manually configuring the partial SIP mode documented for the installed yabai release from macOS Recovery. Deployment must pause for this step and must not attempt to change SIP.
After linking the Yabai package, run suyabai to install the validated,
hash-bound sudoers rule and load the scripting addition. Run it again whenever
Homebrew upgrades yabai; no shell update command calls it automatically. Start
the daemons with yabai --start-service, skhd --start-service, and
brew services start borders.
Apply later configuration changes with
yabai --restart-service, skhd --restart-service, and
brew services restart borders rather than executing yabairc directly, which
would append duplicate rules and signals to the running process.
The SketchyBar package is a macOS-only desktop module built around the configured
Yabai module and SketchyBar. Read the files under
sketchybar/.config/sketchybar for its current
behavior.
Deployment requires Xcode Command Line Tools; the Homebrew formulas
felixkratz/formulae/sketchybar, jq, switchaudio-osx, and fastfetch; and
the casks font-jetbrains-maple-mono and swiftdialog. The qualified formula
comes from a non-core upstream maintainer tap; the agent must show its source
and ask before adding it. The private XQzhaopaiti0517 font must be installed
manually. Deployment pauses when it is missing.
After installing dependencies and fonts, link the package with Stow, run
scripts/install-app-font,
start SketchyBar, and verify the bar and helper processes. The installer fetches
sketchybar-app-font and generates plugins/icon_map.sh. The compiled helper
and generated icon map are runtime files and are not stored in Git.
Ghostty is the macOS terminal client and starts the main tmux session in
~/repo/scratch, leaving ~/repo as the project overview.
Its deployment contract is Ghostty 1.3 or newer and the Homebrew cask
font-jetbrains-maple-mono. Read config for
the current terminal behavior and tmux key translations. The tracked cursor
shader is configuration source; the combined shader retains the smear shader's
upstream revision and MIT notice in its file header.
Raycast extensions are maintained as source under raycast/extensions.
The Server extension reads SSH aliases from the private inventory at
~/.config/server/config.json and attaches each selected host to its main tmux
session. Host addresses, users, ports, and keys remain in ~/.ssh/config and are
not owned by this repository.
Run ./check from the repository root after changing the dotfiles. It performs
read-only Stow, syntax, configuration, and module test gates. Platform-specific
runtime checks run only on their supported operating system. The command does
not install dependencies, update plugins, or rewrite tracked configuration.