安装前需先导入作者 GPG 公钥并校验最新提交签名,否则脚本会退出;被覆盖的原有文件会保留为 .bak、.bak.1 等,需自行清理;git 作者信息与 GPG 签名需按 README 手动配置后才生效
git clone https://github.com/paulmillr/dotfiles.git "$HOME/Developer/personal/dotfiles"
cd "$HOME/Developer/personal/dotfiles"
./install.shREADME 未说明
一套面向 Mac、Linux 和 BSD 的彩色且注重安全的 dotfiles 与工具集,帮你快速搭好 shell、git、vim 环境
一套色彩丰富、稳定可靠的 Mac/Linux/BSD 终端配置文件与工具集,帮你快速搭好顺手的 shell 和终端环境。
核心能力
- 零外部依赖,不依赖 oh-my-zsh 或 prezto
- 为 zsh 提供自动补全与语法高亮
- 安装器不联网,可验证且可回滚
- git 通过 IdentitiesOnly=yes 只向托管方暴露一个密钥
- vim 配置成带树形视图和插件的迷你 IDE
容易踩的坑
暂无 release 数据(可能没有发版,或尚未同步)。
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Dotfiles
Colourful & robust security-minded configuration files and utilities for Mac, Linux and BSD.
git clone https://github.com/paulmillr/dotfiles.git "$HOME/Developer/personal/dotfiles"
cd "$HOME/Developer/personal/dotfiles"
curl -s https://github.com/paulmillr.gpg | gpg --import
[ "$(git log -1 --format=%GP)" = "78A89CD10959782E23FF8447697079DA6878B89B" ] || { echo 'commit is not signed with the expected key'; exit 1; }
git show --stat --oneline HEAD
./install.sh
The installer performs no network requests; it invokes ./scripts/link.sh from its own checkout.
Displaced paths are preserved as .bak, .bak.1, and so on.
Features
<img width="957" height="551" alt="Image" src="https://raw.githubusercontent.com/paulmillr/dotfiles/HEAD/
- No external dependencies! Great, when compared to oh-my-zsh or prezto.
- Auto-completion & syntax highlighing for zsh
- Security-minded:
- The branch names, archives, directory names, and other local users are assumed hostile.
- The installer doesn't do network and is verifiable / reversible.
- git offers exactly ONE key to git hosts via
IdentitiesOnly=yes - git log shows signature status
- Telemetry is disabled to known scripts via env vars like
DO_NOT_TRACK=1
homehas tiny files installed into$HOME-zshrc,bashrc,gitconfigconfig/has all the important parts:shell/- zsh & bash setup + extra helper functionsgit/- git log formattingvim/- turns vim into full-fledged mini-IDE, with tree view and other pluginsterminal-themes/- color scheme for apple terminal, iterm and ghostty (where it's shipped by default)ghostty/,vscode/- some settings for terminal and editor
Git setup
Specify git author:
git config --global user.name "Diogenes of Sinope"
git config --global user.email "[email protected]"
To enable checkboxes in git logs, also add config/git/mailmap:
ME <[email protected]> <[email protected]>
ME <[email protected]> <[email protected]>
Enable GPG commit signing:
git config --global commit.gpgsign true
git config --global tag.gpgSign true
License
The MIT License (MIT)
Copyright (c) 2011 Paul Miller (paulmillr.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.