updated doc and exemple conf

This commit is contained in:
fatalerrors
2026-05-27 17:32:35 +02:00
parent 7287d8ef87
commit d9a62cf2a8
3 changed files with 26 additions and 1 deletions

View File

@@ -85,6 +85,7 @@ A bar-style prompt showing current time, execution time of the last command
| `disp` | disp | Display formatted info / warning / error / debug messages; long messages are word-wrapped and continuation lines are indented to align with the message text |
| `dwl` | net | Download a URL using curl, wget, or fetch transparently; supports `-t <seconds>` / `--timeout <seconds>` to cap the transfer time |
| `expandlist` | filefct | Expand glob expressions into a quoted, separated list |
| `fake_compile` | fun | Simulate a long compilation process with random warnings and errors |
| `file_stats` | filefct | Display file size statistics for a path |
| `findbig` | filefct | Find the biggest files in the given or current directory |
| `finddead` | filefct | Find dead symbolic links in the given or current directory |
@@ -99,6 +100,7 @@ A bar-style prompt showing current time, execution time of the last command
| `gsync` | git | Fetch and rebase the current branch onto its upstream |
| `gst` | git | Display compact git status with branch tracking information |
| `gwip` | git | Create a quick WIP checkpoint commit |
| `hack` | fun | Simulate a dramatic multi-phase hacking sequence |
| `help` | help | Display the list of available functions and basic usage; `help <command>` delegates to `<command> --help` |
| `isipv4` | net | Tell if the given parameter is a valid IPv4 address |
| `isipv6` | net | Tell if the given parameter is a valid IPv6 address |
@@ -221,6 +223,11 @@ change the default without having to pass flags every time.
|---|---|---|
| `BUSY_DEFAULT_PATTERN` | `[0-9a-f]` | Hex pattern matched by `busy` |
| `BUSY_DEFAULT_DELAY` | `0.1` | Polling delay (seconds) for `busy` |
| `FAKE_COMPILE_DEFAULT_MIN_DELAY` | `40` | Min delay between output lines for `fake_compile` (ms) |
| `FAKE_COMPILE_DEFAULT_MAX_DELAY` | `150` | Max delay between output lines for `fake_compile` (ms) |
| `FAKE_COMPILE_DEFAULT_LANG` | `c` | Default language preset for `fake_compile` (`c`, `cpp`, `java`, `python`, `random`) |
| `HACK_DEFAULT_MIN_DELAY` | `60` | Min delay between output lines for `hack` (ms) |
| `HACK_DEFAULT_MAX_DELAY` | `250` | Max delay between output lines for `hack` (ms) |
**`[git]`**

View File

@@ -53,7 +53,8 @@ TERM=xterm-256color
# ==============================================================================
[disp]
# Uncomment to disable ANSI colours in profile's own output messages.
# Uncomment to disable ANSI colours in profile's own output messages. For the
# prompt use a non-colored theme in [prompt] section of that file.
#NO_COLOR=1
# ==============================================================================
@@ -78,6 +79,21 @@ TERM=xterm-256color
# busy: Delay between matched lines in milliseconds (0 = no delay).
#BUSY_DEFAULT_DELAY=0
# fake_compile: Minimum delay between output lines in milliseconds.
#FAKE_COMPILE_DEFAULT_MIN_DELAY=40
# fake_compile: Maximum delay between output lines in milliseconds.
#FAKE_COMPILE_DEFAULT_MAX_DELAY=150
# fake_compile: Default language preset (c, cpp, java, python, random).
#FAKE_COMPILE_DEFAULT_LANG=c
# hack: Minimum delay between output lines in milliseconds.
#HACK_DEFAULT_MIN_DELAY=60
# hack: Maximum delay between output lines in milliseconds.
#HACK_DEFAULT_MAX_DELAY=250
# ==============================================================================
[git]
# Fallback main branch name used when remote HEAD cannot be detected.

View File

@@ -60,6 +60,7 @@ help()
printf "disp\t\tDisplay formatted info/warning/error/debug messages\n"
printf "dwl\t\tDownload a URL using curl, wget, or fetch transparently\n"
printf "expandlist\tExpand glob expressions into a quoted, separated list\n"
printf "fake_compile\tSimulate a long compilation process — look busy again\n"
printf "file_stats\tDisplay file size statistics for a path\n"
printf "findbig\t\tFind the biggest files in the given or current directory\n"
printf "finddead\tFind dead symbolic links in the given or current directory\n"
@@ -74,6 +75,7 @@ help()
printf "gst\t\tDisplay short git status and branch tracking info\n"
printf "gwip\t\tCreate a quick WIP checkpoint commit\n"
printf "gpid\t\tGive the list of PIDs matching the given process name(s)\n"
printf "hack\t\tSimulate a dramatic hacking sequence — look dangerous\n"
printf "isipv4\t\tTell if the given parameter is a valid IPv4 address\n"
printf "isipv6\t\tTell if the given parameter is a valid IPv6 address\n"
printf "ku\t\tKill all processes owned by the given user name or ID\n"