changkun/dotfiles là dự án Shell với 151 sao. personal development settings
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
My personal macOS and Linux (Ubuntu distribution) system dotfiles and settings.
Use it at your own risk.
macOS
Linux Ubuntu
iPadOS
iOS
Folder Policy
All code projects are managed in ~/dev, common folders:
~/dev/changkun.de
~/dev/golang.design
~/dev/godev # golang.org repositories
~/dev/wild # code for temporary use
Managing multiple go versions:
~/goes/go # just an alias to an inused go version
~/goes/go1.17.1 # a specific version
Claude Code
The claude folder sets up Claude Code the same way on every machine. From a checkout of this repository, one command installs it:
sh claude/install.sh
On a new machine, the installer can also be piped from GitHub. It first clones this repository into ~/dev/changkun.de/dotfiles, or into the folder that DOTFILES names, and then runs from that checkout:
curl -fsSL https://raw.githubusercontent.com/changkun/dotfiles/main/claude/install.sh | sh
The installer needs python3, and the status line also needs node 18 or newer. It does three things, and running it a second time changes nothing.
It links claude/hooks/owner-words.py into ~/.claude/hooks/, so pulling this repository updates the hook in place. If a different file was already there, the installer keeps it as owner-words.py.bak.
It merges claude/settings.json into ~/.claude/settings.json. The merge only adds the keys and entries the machine lacks, so a value already set on the machine wins over the one here, and every other setting stays as it was. Before its first change, the installer saves the original file as settings.json.dotfiles-backup. The merged settings register the hook, empty the commit and pull request attribution, suppress the session attribution, keep session transcripts for 99,999 days instead of the default 30, and enable my plugins together with the marketplaces they come from. Claude Code adds those marketplaces and downloads the plugins in the background after it starts. Permission rules and auto mode rules stay out of this repository, because they name paths and services on one machine.
It installs the ccstatus status line by running the installer from that repository, unless ccstatus is installed already. Running the ccstatus installer again updates it, and setting CCSTATUS_SRC=~/dev/changkun.de/ccstatus installs it from a local checkout instead of from GitHub.
Like Claude Code and ccstatus, the installer honours CLAUDE_CONFIG_DIR and CCSTATUS_HOME when they are set.
The owner-words hook
Claude Code runs the hook before it writes or edits a file, briefs an agent, messages another agent, or runs a command that publishes text, such as git commit, git tag, gh pr create or gh api. The hook refuses the call in two cases. The first is when the outgoing text repeats a run of five or more words, in order, from a message I typed in the same project. The second is when the text adds a sentence that reports what I asked for or said instead of describing the change. The second check skips the memory folder, where such notes belong. Claude sees the phrases the hook refused and writes them again in its own words. Text that a file already contained before the edit always passes, so older documents can still be edited.
The hook reads my messages from the transcripts of the current project in ~/.claude/projects, and it ignores pasted blocks, tool output, system text and the transcripts of subagents. It keeps the messages in ~/.claude/hooks/owner-words.cache.json, which only my user can read, and on each call it reads just the part of a transcript that is new. That cache holds my own words, so .gitignore keeps it out of this repository.
To check files that already exist, python3 ~/.claude/hooks/owner-words.py --scan FILE... lists every repeated run they contain, using the messages of the project in the current directory.
The tests pipe synthetic hook input through the hook and rehearse the installer in a temporary home folder, so they never read real transcripts or change the real settings:
python3 claude/test/owner-words-test.py # or pass ~/.claude/hooks/owner-words.py
sh claude/test/install-test.sh
Removing it
sh claude/uninstall.sh removes the hook's entry from ~/.claude/settings.json, its link in ~/.claude/hooks and its cache. The other merged settings stay, because the uninstaller cannot tell whether the machine had them before the install; settings.json.dotfiles-backup shows how the file looked then. ccstatus removes itself with ~/.local/share/ccstatus/uninstall.sh.
changkun/dotfiles có 151 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/changkun/dotfiles. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
changkun/dotfiles có phải mã nguồn mở không?
Có — changkun/dotfiles phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/changkun/dotfiles.
changkun/dotfiles còn đang phát triển không?
Commit gần nhất trên changkun/dotfiles là 13 ngày trước (theo timestamp GitHub). Repo có 22 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
changkun/dotfiles là gì?
changkun/dotfiles (changkun/dotfiles) là dự án Shell trên GitHub. Theo mô tả gốc: personal development settings
Đọc thêm về changkun/dotfiles ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/changkun/dotfiles là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc dotfiles có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về dotfiles.