moved helpers separately

This commit is contained in:
2026-10-13 16:21:24 +02:00
parent ba1e07744e
commit 9911f6d01d
33 changed files with 1489 additions and 1089 deletions
+8
View File
@@ -82,6 +82,14 @@ profile gives access to numerous functions, aliases and to an advanced prompt.
All functions are organized into modules under the `profile.d/` directory and
are loaded automatically at startup.
The internal helpers (functions starting with `_`, not meant to be called by
hand) are kept apart from the modules, in the `helpers/` directory:
`helpers/common.sh` holds the ones shared by several modules (option parsing,
trap restoration, ...), and each module loads its own private helpers from
`helpers/<module name>.sh` when that file exists (`profile.d/rain.sh` loads
`helpers/rain.sh`). Both are loaded automatically; `helpers/` must be kept next
to `profile.sh` and `profile.d/`.
### 3.1. Prompt
A bar-style prompt showing current time, execution time of the last command