<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotfiles/Brewfile, branch main</title>
<subtitle>Zhineng's configuration files for various environments.</subtitle>
<id>https://git.zhineng.li/dotfiles/atom?h=main</id>
<link rel='self' href='https://git.zhineng.li/dotfiles/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.zhineng.li/dotfiles/'/>
<updated>2026-01-09T05:30:25Z</updated>
<entry>
<title>configure computer and host names</title>
<updated>2026-01-09T05:30:25Z</updated>
<author>
<name>Zhineng Li</name>
<email>im@zhineng.li</email>
</author>
<published>2026-01-09T05:23:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zhineng.li/dotfiles/commit/?id=6234809794b930ee9bcc8985bb970d1aa2ea6613'/>
<id>urn:sha1:6234809794b930ee9bcc8985bb970d1aa2ea6613</id>
<content type='text'>
When configuring identifier names, we use interactive prompts to ask the
user for the computer name and hostname. We retrieve the current computer
name via `scutil` and dynamically calculate a standardized hostname default.

For better UX, we use the `read -i` option to pre-fill these values,
allowing the user to simply confirm the defaults or edit them easily.

Note: The `-i` option requires *Bash 4.0+*. Although macOS ships with
Bash 3.2, this script runs after the Homebrew bundle installation (which
includes the up-to-date bash package), ensuring the necessary shell version
is available.

```
$ /bin/bash --version
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin25)
Copyright (C) 2007 Free Software Foundation, Inc.

$ /usr/bin/env bash --version
GNU bash, version 5.3.9(1)-release (aarch64-apple-darwin25.1.0)
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
```
</content>
</entry>
<entry>
<title>initialize Brewfile</title>
<updated>2026-01-04T08:30:10Z</updated>
<author>
<name>Zhineng Li</name>
<email>im@zhineng.li</email>
</author>
<published>2026-01-04T08:30:10Z</published>
<link rel='alternate' type='text/html' href='https://git.zhineng.li/dotfiles/commit/?id=9bb9421f8cb15f7874b0cf3a704a51482a26c2af'/>
<id>urn:sha1:9bb9421f8cb15f7874b0cf3a704a51482a26c2af</id>
<content type='text'>
</content>
</entry>
</feed>
