SD

samhvw8/dotfiles

Data science & ML

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

15 stars Качество 52 Тренд 29

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:

  1. Installs the Xcode Command Line Tools on macOS, or git and curl on Debian/Ubuntu, asking for your password once.
  2. Installs mise (or runs mise self-update when it is older than 2026.9.8), clones this repository to ~/.dotfiles, and enables its pre-commit hook.
  3. Asks for your git name and email and saves them in ~/.config/mise/config.local.toml. Set DOTFILES_GIT_NAME and DOTFILES_GIT_EMAIL to skip the prompt.
  4. Links ~/.config/mise/config.toml to the full or minimal config.
  5. Copies every existing file it is about to replace into ~/.dotfiles-backup-/.
  6. 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:

  1. prepare-host.sh: XDG directories, and Rosetta 2 on macOS.
  2. System packages: brew and brew-cask on macOS, apt on Linux. mise installs brew and brew-cask entries itself; Homebrew is not installed.
  3. finish-host.sh: deb-get and zsh as the login shell on Linux.
  4. Repositories: ~/.tmux/plugins/tpm on full installs.
  5. Dotfiles: links and managed blocks.
  6. Tools from the mise config.
Открыть полный README на GitHub

Рекомендуемые инструменты

Попробуйте другой запрос или уберите фильтр.

Установка

npx skillfish add samhvw8/dotfiles
Новичок в MCP? Начните с руководства на mcpskill.org →