This is better than presuming a specific install location, which
probably varies by platform.
Message-type: text/lesml
#!/usr/bin/env sh
-# @(#)🏠📂 HOMEDIR sh/git.sh 2026-04-05T19:34:02Z
+# @(#)🏠📂 HOMEDIR sh/git.sh 2026-04-05T20:04:14Z
# SPDX-FileCopyrightText: 2026 Lady <https://www.ladys.computer/about/#lady>
# SPDX-License-Identifier: MPL-2.0
##
## As this script is expected to override `git´ in the `${PATH}´, the
## actual path to the Git binary must be used.
+## Assuming Git is in the usual location, this can be found with
+## `command -pv git´.
-: "${cmd_GIT:=/usr/bin/git}"
+defaultgit="$(
+ command -pv git
+)"
+: "${cmd_GIT:=${defaultgit}}"
: "${cmd_MKDIR:=mkdir}"
: "${cmd_PRINTF:=printf}"
: "${cmd_PWD:=pwd}"