2 ; @(#)🏠📂 HOMEDIR .gitconfig 2026-03-22T02:08:01Z
3 ; SPDX-FileCopyrightText: 2026 Lady <https://www.ladys.computer/about/#lady>
4 ; SPDX-License-Identifier: CC0-1.0
8 ;; This file provides some basic Git configuration.
9 ;; It is intended to be included from a user‐level Git configuration
10 ;; file; user‐specific settings like name and email are not provided.
18 ;; Installs the hooks in the `*/githooks´ subdirectories of
19 ;; `../HOMEDIR´ as symlinks.
21 install-hooks = "!: \"${path_HOMEDIR:=$(realpath ../HOMEDIR)}\" ; for file in \"${path_HOMEDIR}\"/*/githooks/* ; do : ; hookname=\"$(printf '%s\n' \"${file}\" | sed 's/^.*[/]\\([^/]*\\)[.][^/.]*$/\\1/')\" ; ln -fs \"${file}\" \"${GIT_DIR}\"/hooks/\"${hookname}\" ; done"
25 ;; Functions like `git commit --amend --reset-author´, but keeps the
26 ;; date of the commit.
28 rename = "!git commit --amend --reset-author --no-edit --date=\"$(git show -s | sed '/^Date:/!d;/^Date:/s/Date: *//')\""
32 ;; Prints the message of the current HEAD.
34 showmsg = "!git show -s | sed '/^ \\{4\\}/!d;s/ \\{4\\}//'"
40 ;; Do not sign commits.
41 ;; This is the default, but override any system configuration to do
48 ;; ❦ Branch color settings
50 ;; Use yellow for the current branch and cyan for the remote branch.
56 ;; ❦ Diff color settings
58 ;; Use bold red for new content and blue for outdated content.
68 ;; Use CotEditor as the editor if it is defined; otherwise, use nano.
70 editor = "if command -v cot; then cot --wait \"$@\"; else nano \"$@\"; fi; true"
72 ;; Use composed forms of filenames, not decomposed forms, on macOS.
74 precomposeUnicode = true
76 ;; Don¦t escape non‐Ascii characters in paths.
81 ;; § Initialization settings
85 ;; Use `🆕´ as the default branch name.
93 ;; Only allow fastforward pulls.