dotfiles

webpro活跃维护

一套 macOS 开发环境的 dotfiles 配置,用 GNU Stow 管理 bash、Homebrew、Hammerspoon 等工具的配置文件,帮你快速复刻一致的终端工作环境。

Dotfiles for macOS

暂无版本1,243star237fork同步于 2026-11-10 05:55 UTC

怎么上手

从 README 代码块原样提取,可能是其中一种安装方式
git clone https://github.com/webpro/dotfiles.git ~/.dotfiles
硬件要求按 README 关键词推断
支持 Apple Silicon
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

这个项目的说明还在生成中,先参考下面「最近发版」和 README。

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    .files

    These are my dotfiles. Take anything you want, but at your own risk.

    Mainly targets macOS systems, but works on Ubuntu and Arch Linux as well.

    Highlights

    • Minimal efforts to install everything, using a Makefile
    • Mostly based around Homebrew, Caskroom and Node.js, latest Bash + GNU Utils
    • Fast and colored prompt
    • Updated macOS defaults
    • Well-organized and easy to customize
    • The installation and runcom setup is tested weekly on real Ubuntu and macOS machines (Sonoma/14, Sequoia/15, Tahoe/26) using a GitHub Action
    • Supports both Apple Silicon (M1) and Intel chips

    Packages Overview

    Installation

    On a sparkling fresh installation of macOS:

    sudo softwareupdate -i -a
    xcode-select --install
    

    The Xcode Command Line Tools includes git and make (not available on stock macOS). Now there are two options:

    1. Install this repo with curl available:
    bash -c "`curl -fsSL https://raw.githubusercontent.com/webpro/dotfiles/master/remote-install.sh`"
    

    This will clone or download this repo to ~/.dotfiles (depending on the availability of git, curl or wget).

    1. Alternatively, clone manually into the desired location:
    git clone https://github.com/webpro/dotfiles.git ~/.dotfiles
    
    1. Use the Makefile to install the packages listed above, and symlink runcom and config files (using stow):
    cd ~/.dotfiles
    make
    

    Running make with the Makefile is idempotent. The installation process in the Makefile is tested on every push and every week in this GitHub Action. Please file an issue in this repo if there are errors.

    Post-Installation

    1. Set your Git identity:
    git config --global user.name "your name"
    git config --global user.email "[email protected]"
    git config --global github.user "your-github-username"
    
    1. Authenticate GitHub CLI:
    gh auth login
    
    1. Set macOS Dock items and system defaults:
    dot dock
    dot macos
    
    1. Populate this file with anything you need sourced in each shell:
    mkdir -p $DOTFILES_DIR/local
    touch $DOTFILES_DIR/local/.profile
    touch $DOTFILES_DIR/local/.env
    

    The dot command

    $ dot help
    Usage: dot <command>
    
    Commands:
       clean            Clean up caches, logs, temporary files, and app leftovers
       dock             Apply macOS Dock settings
       duti             Set default apps for file types (UTI)
       edit             Open dotfiles in IDE (code) and Git GUI (fork)
       help             This help message
       macos            Apply macOS system defaults and optional system setup
       test             Run tests
       update           Update packages and pkg managers (e.g. Homebrew, npm, gems)
    

    Customize

    To customize the dotfiles to your likings, fork it and be the king of your castle!

    Credits

    Many thanks to the dotfiles community.