
samhvw8/dotfiles
Data science & MLこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
A comprehensive dotfiles setup script that configures development environments for both macOS and Linux systems.
概要
A comprehensive dotfiles setup script that configures development environments for both macOS and Linux systems. - -m, --minimal: Minimal installation with fewer packages and tools - -n, --no-sudo: Install without sudo privileges - -h, --help: Display help message - XDG base directory structure - Git configuration - ZSH as default shell (Linux) - Homebrew (macOS) - Rosetta 2 (macOS ARM) - chezmoi for dotfiles management - fzf for fuzzy finding - mise for runtime version management - tmux with plugin manager (full installation) - Miniconda for Python environment management (full installation) - Development tools and build essentials - Python pip and related packages - FiraCode Nerd Font (Linux) - Additional system utilities - macOS or Linux (Debian/Ubuntu-based) - Internet connection - Git - curl The script automatically detects your operating system and installs the appropriate packages and configurations.
README
以下は原文 README の抜粋です。原文を見る。
Dotfiles
Dotfiles and machine setup for macOS and Linux, managed with
mise. One mise bootstrap installs system packages,
clones repositories, links dotfiles and installs tools.
Install
curl -L https://raw.githubusercontent.com/samhvw8/dotfiles/main/setup.sh | bash
For a minimal install (servers), pass --minimal:
curl -L https://raw.githubusercontent.com/samhvw8/dotfiles/main/setup.sh | bash -s -- --minimal
setup.sh:
- Installs the Xcode Command Line Tools on macOS, or git and curl on Debian/Ubuntu, asking for your password once.
- Installs mise (or runs
mise self-updatewhen it is older than 2026.9.8), clones this repository to~/.dotfiles, and enables its pre-commit hook. - Asks for your git name and email and saves them in
~/.config/mise/config.local.toml. SetDOTFILES_GIT_NAMEandDOTFILES_GIT_EMAILto skip the prompt. - Links
~/.config/mise/config.tomlto the full or minimal config. - Copies every existing file it is about to replace into
~/.dotfiles-backup-/. - Runs
mise bootstrap. It refreshes package metadata (apt-get update, which needs sudo) only when a package is missing, so an up-to-date machine needs no password.
Then open a new shell. On a full install, run ccp bootstrap to fetch the
Claude Code skills installed from ccp sources; only the ccp hub items created
by hand are stored here.
Layout
| Path | Purpose |
|---|---|
home/ |
Dotfiles, linked to the same paths under ~ |
mise/config.toml |
Full install: tools, full-only dotfiles, packages, repos and hooks |
mise/minimal.toml |
Minimal install: a smaller tool set and the minimal .zshrc |
mise/conf.d/dotfiles.toml |
Dotfiles, packages, repos and hooks shared by both installs |
mise/scripts/ |
Bootstrap hook scripts |
mise/snippets/ |
Templated blocks managed inside files such as ~/.gitconfig |
setup.sh |
New-machine installer |
migrate-from-chezmoi.sh |
One-time migration for machines still on chezmoi |
.githooks/pre-commit |
Runs dot:check before each commit |
.okf/ |
Knowledge bundle: how and why this setup works (see below) |
~/.config/mise/config.toml links to mise/config.toml or mise/minimal.toml,
which is what makes a machine full or minimal. mise/conf.d/dotfiles.toml is
linked into ~/.config/mise/conf.d/ on both.
How it works
mise bootstrap runs these steps in order. Each one skips work that is already
done, so it is safe to run again at any time:
prepare-host.sh: XDG directories, and Rosetta 2 on macOS.- System packages:
brewandbrew-caskon macOS,apton Linux. mise installsbrewandbrew-caskentries itself; Homebrew is not installed. finish-host.sh: deb-get and zsh as the login shell on Linux.- Repositories:
~/.tmux/plugins/tpmon full installs. - Dotfiles: links and managed blocks.
- Tools from the mise config.
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add samhvw8/dotfiles