Looking for working examples first? See recipes.md for copy-pasteable
config.tomlsnippets organised by use case.
Default path: $XDG_CONFIG_HOME/runex/config.toml, falling back to ~/.config/runex/config.toml on all platforms including Windows.
Override with the RUNEX_CONFIG environment variable or the --config flag.
Note: Unknown fields and table names are silently ignored. Typos like
[[abr]]orexpad = "lsd"will not produce an error — the misspelled entry is simply skipped. Userunex doctorto verify that your config loads correctly.
| Field | Type | Required | Description |
|---|---|---|---|
version |
integer | yes | Schema version. Must be 1; other values are rejected at load time. |
keybind |
table | no | Trigger key configuration. If omitted, no key is bound. |
precache |
table | no | Deprecated since 0.1.12. Parsed for backward compatibility; has no run-time effect. See [precache] (deprecated) below. |
abbr |
array of tables | no | Abbreviation rules. Evaluated in order. |
Controls which key triggers expansion in each shell. [keybind] has three subtables, all optional:
[keybind.trigger]— the key that triggers abbreviation expansion[keybind.self_insert]— a key that inserts a plain space without expanding (optional)[keybind.paste_intercept]— a key that bypasses the per-keystroke trigger and reads the system clipboard directly (optional, currently nu only)
Each subtable accepts the following fields:
| Field | Type | Default | Description |
|---|---|---|---|
default |
string | — | Key for all shells not otherwise specified. |
bash |
string | falls back to default |
bash-specific override. |
zsh |
string | falls back to default |
zsh-specific override. |
pwsh |
string | falls back to default |
PowerShell-specific override. |
nu |
string | falls back to default |
Nushell-specific override. |
Clink does not have a shell-specific field — it always uses default.
If default and all shell-specific fields are omitted, no key is bound for that subtable. The shell integration script is still generated; expansion is available via runex expand --token <token>.
Shell-specific fields take precedence over default:
[keybind.trigger]
default = "space"
bash = "alt-space" # bash uses Alt+Space; other shells use Space| Value | Key |
|---|---|
"space" |
Space bar |
"tab" |
Tab |
"alt-space" |
Alt + Space |
"shift-space" |
Shift + Space (pwsh and nu only) |
"ctrl-v" |
Ctrl + V ([keybind.paste_intercept] only — see below) |
Binds a key to plain-space insertion, bypassing expansion entirely. Useful when the trigger key has a modifier variant that would otherwise fall through to the expansion handler.
[keybind.trigger]
default = "space"
[keybind.self_insert]
default = "shift-space" # Shift+Space inserts a space without expandingShell support for self_insert:
| Shell | "alt-space" |
"shift-space" |
|---|---|---|
| bash | yes | no (terminal-dependent — use alt-space instead) |
| zsh | yes | no (terminal-dependent — use alt-space instead) |
| pwsh | yes | yes |
| nu | yes | yes |
| clink | — | — |
Note: Setting
self_insert.default = "shift-space"(orself_insert.bash/self_insert.zsh) produces a warning fromrunex doctorbecause Shift+Space cannot be reliably detected in bash or zsh. Use"alt-space"for cross-shell support.
Binds a key (currently only "ctrl-v") to a paste-from-clipboard action that bypasses the per-keystroke abbreviation trigger. Available since 0.1.14, currently supported only on nu.
[keybind.trigger]
default = "space"
[keybind.paste_intercept]
nu = "ctrl-v" # Ctrl+V reads the system clipboard via `runex paste-clipboard`Why nu only: nu's reedline delivers paste content as individual keystrokes, so a paste containing the trigger space fires the runex binding mid-paste and the rest of the paste is lost (executehostcommand resets the command line at fire time). The paste_intercept binding wraps Ctrl+V to read the clipboard directly via the hidden runex paste-clipboard subcommand and inject the text via commandline edit --insert, sidestepping the keystroke trigger entirely. bash/zsh have no trigger-on-paste race, pwsh sets paste_pending so the hook short-circuits, and clink's lua binding only fires on standalone keypresses.
Provider chain for runex paste-clipboard:
| Platform | Provider |
|---|---|
| Windows | Native OpenClipboard / GetClipboardData(CF_UNICODETEXT) |
| Linux | wl-paste --no-newline → xclip -selection clipboard -o → xsel --clipboard --output |
| WSL | Linux providers first; falls back to powershell.exe -NoProfile -Command Get-Clipboard |
| macOS | pbpaste |
Each external command has a 500 ms timeout. Maximum clipboard size is 1 MiB. Empty clipboard → empty stdout (the binding's is-empty check no-ops the insert).
Validation:
paste_interceptset ondefault/bash/zsh/pwshis rejected byrunex doctorandparse_config— those shells don't have the paste-mid-trigger problem and don't need a workaround.- Setting
paste_intercept.nuto anything other than"ctrl-v"is rejected. The binding is locked to a single chord that paste streams cannot contain. - Setting
"ctrl-v"on[keybind.trigger]or[keybind.self_insert]is rejected — Ctrl+V is reserved forpaste_intercept.
Limitations:
- Mouse middle-click paste and terminal right-click paste inject characters through the keymap rather than triggering Ctrl+V, so they remain affected by nu's upstream paste-mid-trigger limitation. Use Ctrl+V from the keyboard for paste-safe operation.
- Windows Terminal intercepts Ctrl+V before nu sees it (it ships with
Ctrl+Vbound to itspasteaction). On Windows Terminal you have two options: (a) switch to a terminal that passes Ctrl+V through (WezTerm and Alacritty are confirmed working), or (b) remap or disable the Windows Terminalpastebinding insettings.json. WezTerm, Alacritty, macOS Terminal.app, and most Linux terminal emulators pass Ctrl+V to nu unchanged.
Important
Deprecated since 0.1.12. This section has no run-time effect.
runex doctor --strict warns when it is present. Remove the section from your config to silence the warning.
Earlier versions used the shell integration to populate a per-session command-existence cache at rc/profile time. With the move to the runex hook per-keystroke RPC, when_command_exists is now evaluated against which::which (and the optional --path-prepend directory) every time the hook fires; the precache layer is gone and the section's path_only field is ignored.
If you previously relied on path_only = false's shell-native detection (cmdlets, aliases, user-defined functions), expect those rules to behave like path_only = true did before — only PATH-resolvable binaries match. Re-architecting that detection on top of runex hook is tracked separately.
runex export <shell> emits a small bootstrap that registers a key handler
on the trigger key. When the user presses that key the handler invokes the
hidden subcommand runex hook, passing the current buffer and cursor as
arguments:
runex hook --shell <shell> --line=<buffer> --cursor <byte_offset>
The buffer is joined to --line with =, so a buffer that starts with
- is not read as an option.
clink and pwsh pass the buffer hex-encoded with --line-hex (the UTF-8
bytes as hex digits) instead of --line, because both reach runex
through a layer that rewrites argument text: clink's only path is a cmd.exe command line, which cannot
carry ", % or ! inside an argument, and PowerShell rewrites a leading
~ while Windows PowerShell 5.1 re-splits an argument containing ".
The Rust core decides whether to expand (command-position detection,
known-token check, when_command_exists, cursor-placeholder handling) and
emits a shell-specific directive that the bootstrap evaluates. The five
shells use different output formats but the same flow:
| shell | hook output format |
|---|---|
| bash | READLINE_LINE='...'; READLINE_POINT=N (eval'd) |
| zsh | LBUFFER='...'; RBUFFER='...' (eval'd) |
| pwsh | $__RUNEX_LINE = "..." and $__RUNEX_CURSOR = N on two lines (Invoke-Expression'd) |
| clink | return { line = "...", cursor = N } (Lua load() in a sandbox) |
| nu | {"line": "...", "cursor": N} (parsed via from json) |
runex init <shell> stores that bootstrap in a cache file
(<XDG_CACHE_HOME>/runex/integration.<ext> for bash / zsh / pwsh / nu;
clink keeps runex.lua under %LOCALAPPDATA%\clink) and points the
shell's rc file at it. runex add and runex remove rewrite the
existing cache files after their edit; after editing config.toml by
hand, run runex config reload to do the same. runex doctor reports a
cache that has drifted from the installed binary.
Failures (missing config, malformed buffer) are silent: the hook returns
an InsertSpace action so the bootstrap inserts a literal trigger key and
the user keeps typing.
The hook reads the config on every key press, so on bash (outside
Git Bash), zsh, pwsh, clink and nu an [[abbr]] change takes effect
on the next key press without a shell restart. Two things are embedded
in the cache and need a regenerated cache (runex config reload, or
the automatic refresh after runex add / runex remove) plus a new
shell: the [keybind] table on every shell, and the abbreviation table
on bash under MSYS2 or Cygwin, where the cache expands in-shell instead
of calling the hook.
Each [[abbr]] entry defines one abbreviation rule.
| Field | Type | Required | Description |
|---|---|---|---|
key |
string | yes | The short token to match. May contain {number} once (see Numeric repetition). |
expand |
string or per-shell table | yes | The full text to expand into. See per-shell form below. |
when_command_exists |
array of strings or per-shell table | no | Only expand if all listed commands resolve via which at hook time. |
number |
string | no | Repetition unit for the {number} placeholder in key/expand. See Numeric repetition. |
match |
string | no | "glob" reads key as a * / ? pattern; "regex" reads it as a regular expression that must match the whole token. Omit it for an exact or {number} key. See Glob keys and Regex keys. |
Both expand and when_command_exists accept either a flat value (applied to every shell) or a per-shell table. The table fields are default, bash, zsh, pwsh, and nu — any missing shell falls back to default. Clink always uses default.
# Flat (shared across shells)
[[abbr]]
key = "gcm"
expand = "git commit -m"
when_command_exists = ["git"]
# Per-shell (different expansions / conditions per shell)
[[abbr]]
key = "rm"
expand = { default = "rm -i", pwsh = "Remove-Item" }
when_command_exists = { default = ["rm"], pwsh = ["Remove-Item"] }Rules are tried in four passes: exact keys first, then {number} keys, then glob keys (match = "glob"), then regex keys (match = "regex"). A rule in an earlier pass always wins, whatever its position in the file. Within a pass, rules are evaluated top-to-bottom. For each rule:
- If
keydoes not match the input token, skip. - If the rule would rewrite the token to itself, skip and continue to the next rule. An exact rule is checked before step 3 (
key == expand); a glob or regex rule after rendering (the rendered text equals the token). - If
when_command_existslists a command that is not found, skip and continue to the next rule. - Otherwise, expand and stop.
This means multiple rules with the same key work as a priority-ordered fallback chain:
# Rule #1: use lsd when available
[[abbr]]
key = "ls"
expand = "lsd"
when_command_exists = ["lsd"]
# Rule #2: fallback when lsd is absent
[[abbr]]
key = "ls"
expand = "ls --color=auto"Use runex which <token> --why to see which rule matched and which were skipped.
If key == expand, the rule is silently skipped. This prevents a broken config from causing infinite expansion:
# No-op — ls stays ls
[[abbr]]
key = "ls"
expand = "ls"If any listed command cannot be resolved, the rule is skipped (not an error). Runex continues to the next rule with the same key. Resolution uses which::which and honors --path-prepend <dir> when set.
Use --path-prepend <dir> to inject a directory into the command existence check without modifying the system PATH:
$ runex --path-prepend /tmp/fake-bins which ls
The check asks whether the shell you are typing in can run the command, so the same rule can differ between shells on one machine. Git Bash does not call runex on a key press; it checks each command with bash's own type -P and keeps the answer until the shell exits. A command that exists only as foo.cmd or foo.bat is therefore missing in Git Bash, which cannot run it as foo, and found in pwsh. An extensionless #! script is found in Git Bash and missing in pwsh.
expand is inserted verbatim as shell-native text. Runex does not re-escape or reinterpret it. Shell quoting and special characters are passed through as-is.
Use {} in the expansion text to control where the cursor lands after expansion:
[[abbr]]
key = "gcam"
expand = "git commit -am '{}'"When gcam is expanded, the cursor will be placed between the quotes instead of at the end. If {} is absent, the cursor goes to the end of the expansion (default behaviour).
A rule whose expansion is empty or only whitespace once {} is removed (expand = "{}", expand = " {} ") never expands: firing it would only erase the typed token, the same reason an empty expand is rejected at load time. Such a rule is skipped like a rule whose condition fails, so a later rule with the same key is tried. This holds for every kind of rule, including a {number} rule whose unit is whitespace and a glob or regex rule whose captures are whitespace. Only the first {} is the cursor, so expand = "{}{}" renders {} and is not blank. runex doctor warns about a rule that is blank for every token it matches (abbr[N].blank_expand); a rule that is blank only for some tokens, such as a glob whose capture may be whitespace, is not reported.
A [[abbr]] rule can use the {number} placeholder to capture trailing digits in the token and replicate a unit string in the expansion. Add a number = "<unit>" field on the rule to declare the unit:
[[abbr]]
key = "up{number}"
expand = "cd {number}"
number = "../"up3 then expands to cd ../../../; up10 expands to cd ../../../../../../../../../../.
Matching:
- The token must equal
<prefix><digits><suffix>where<prefix>and<suffix>are the literal text around{number}inkey, and<digits>is a non-empty run of ASCII decimals. - Captured value must be in the range
1..=128(MAX_NUMERIC_REPEAT).up0andup129pass through unchanged. - Match is two-phase: every exact-key rule is tried first, then pattern rules. An exact
up2rule therefore beats a patternup{number}even when the pattern appears earlier in the config.
Rendering:
{number}insideexpandis replaced by the unit string repeated<captured-count>times.- The cursor placeholder
{}is still honoured —{number}substitution happens first, then{}is removed and the cursor lands at that position.
Limits and rejections (enforced at config-load time):
keymay contain{number}zero or one time. Two or more is rejected.keymay not contain any other{...}syntax.{foo},{string}, etc. are rejected.keycontaining{number}without anumberfield is rejected.- A
numberfield on a rule whosekeyhas no{number}is rejected. numberunit is capped at 32 bytes (MAX_NUMBER_UNIT_BYTES) — combined withMAX_NUMERIC_REPEAT = 128this keeps a rendered expansion inside the existing 4096-byteexpandcap.- Empty / NUL / ASCII control / Unicode-deceptive content in the unit is rejected (same rules as
expand).
With match = "glob", key is a pattern. * matches zero or more characters and ? matches exactly one; every other character matches itself. {*} in expand is replaced by the text the * matched.
[[abbr]]
key = "k*"
match = "glob"
expand = "kubectl {*}"kgp<Space> expands to kubectl gp. The * may match nothing, so k<Space> expands too.
Matching:
- Glob rules are tried after every exact and
{number}rule, sogstas an exact key still wins over a globg*listed earlier. - Characters are compared, not bytes:
?matches oneä. On Git Bash the match runs in bash instead: under the C locale?matches one byte, and MSYS bash counts a character outside the Basic Multilingual Plane (most emoji) as two. - A glob rule whose rendered text equals the token, or is empty or only whitespace, is skipped (for example
key = "g*"withexpand = "g{*}"). - The capture is inserted as typed. A
{}inside it stays literal text; only the{}written inexpandplaces the cursor. {*}in a key with no*(only?) is replaced by nothing.- A pattern without a fixed part claims every token no earlier rule claims.
k*also rewriteskilltyped at command position; a separator such ask.*avoids real commands.
Limits and rejections (enforced at config-load time):
- The key must contain at least one
*or?, and at most one*. [,],{,},(,)and\are rejected in a glob key. On Git Bash the key is matched by a bashcasepattern, where these characters would change meaning.- Any other
matchvalue is rejected.runex adddoes not write glob rules; add them by hand.
Why pattern keys are opt-in and why the glob syntax is this small: design.md.
With match = "regex", key is a regular expression that must match the whole token: runex compiles it as ^(?:key)$. In expand, {1} to {9} are replaced by the numbered capture groups and {name} by a named group, written (?P<name>...) or (?<name>...).
[[abbr]]
key = 'g(?P<rest>.+)'
match = "regex"
expand = "git {rest}"gco<Space> expands to git co. Single quotes in TOML keep the backslashes of \w or \d literal.
Matching:
- Regex rules are tried after every exact,
{number}and glob rule. Among regex rules, the first in the file wins. - The key is anchored at both ends:
k(\w+)matcheskgpbut notxkgp. - A group that took no part in the match is replaced by nothing:
a(x)?bwithexpand = "[{1}]"turnsabinto[]. {name}wherenameis not a group of the key stays literal text, soawk '{print}' {1}keeps its{print}.- The captures are inserted as typed. A
{}inside one stays literal text; only the{}written inexpandplaces the cursor. - A regex rule whose rendered text equals the token, or is empty or only whitespace, is skipped, as for glob rules. A rendering over 4096 bytes is skipped too.
- Regex keys do not expand on Git Bash. The Git Bash bake path matches in bash, which has no regex engine compatible with runex, so regex rules are left out of its tables. bash on Linux and macOS, zsh, pwsh, nu and clink are unaffected. On Windows,
runex doctorshows a WARN rowabbr.regex_git_bashwhen the config has a regex rule.
Syntax: runex uses regex-lite. It accepts most of the syntax of the regex crate, with two gaps: \w, \d, \s and case-insensitive matching ((?i)) cover ASCII only, and Unicode classes such as \p{L} and class intersection such as [a-z&&[^b]] are rejected.
Limits and rejections (enforced at config-load time):
- A key that does not compile is rejected, with the engine's error message. So is a key that only compiles inside the anchoring group, such as
a)|(b, and one that compiles alone but not once anchored, such as a(?x)key whose trailing#comment would swallow the closing)$. - A key with more than 16 capture groups, or whose compiled form exceeds 64 KiB, is rejected. The config is re-read on every key press; within these limits one regex rule stayed under 10 MiB and 32 ms per press even against a 16 KiB token (measured with
runex hook, release build, Windows 11, 2026-10-01). {N}inexpand(any per-shell value) above the number of groups in the key is rejected:k(\w+)withexpand = "x {2}"fails to load.- A
numberfield on a regex rule is rejected. Braces in a regex key are regex syntax (a{2}), not a{number}placeholder. runex adddoes not write regex rules; add them by hand.
Cost: the config is re-read on every key press, and each regex key is compiled twice per press (once to validate, once to match). Ten typical regex rules added 50–115 µs per key press over ten exact rules: difference of the median runex timings totals in twelve comparisons of 10 runs each, with a token that matches no rule (zzz) and one that matches a regex rule (kgp), Windows 11, release build, 2026-10-01. The cost grows with the number of regex rules.
Runex validates each field at config load time and rejects invalid values with a clear error.
Length limits:
| Field | Maximum |
|---|---|
key |
1 024 bytes |
expand |
4 096 bytes |
when_command_exists — each entry |
255 bytes |
when_command_exists — number of entries |
64 |
number — repetition unit |
32 bytes |
{number} — captured value |
1..=128 |
Rejected characters (in key, expand, and when_command_exists entries):
- ASCII control characters (U+0000–U+001F, U+007F)
- Unicode visual-deception characters — zero-width spaces, bidirectional overrides (RLO/LRO), BOM (U+FEFF), and similar invisible code points
when_command_exists — command names only:
Entries must be bare command names (lsd, bat, eza). Beyond the path separators /, \, :, the following characters are rejected at config load time to keep which-style resolution unambiguous and to defend against any future code path that might re-introduce shell-side resolution:
- Shell metacharacters:
&|;<>`$(){}'" - cmd.exe metacharacters:
%^ - Whitespace: space, tab
- Glob patterns:
*?[] - Precache protocol delimiters:
,= - Other risky punctuation:
!#~
To check a command installed outside your normal PATH, use --path-prepend at runtime instead.
| Variable | Description |
|---|---|
RUNEX_CONFIG |
Override config file path. Overridden by --config. |
XDG_CONFIG_HOME |
Base directory for the default config path (<XDG_CONFIG_HOME>/runex/config.toml). Default ~/.config on every platform. |
XDG_CACHE_HOME |
Base directory for the shell integration caches (<XDG_CACHE_HOME>/runex/integration.<ext>). Default ~/.cache on Linux and macOS, %LOCALAPPDATA% on Windows. |
RUNEX_CLINK_LUA_PATH |
Location of the clink integration file. Default %LOCALAPPDATA%\clink\runex.lua, then ~/.local/share/clink/runex.lua. Used by runex init clink and runex doctor. |
version = 1
[keybind.trigger]
default = "space"
bash = "alt-space"
[keybind.self_insert]
pwsh = "shift-space"
nu = "shift-space"
# lsd as ls — only when lsd is installed
[[abbr]]
key = "ls"
expand = "lsd"
when_command_exists = ["lsd"]
# Fallback ls
[[abbr]]
key = "ls"
expand = "ls --color=auto"
# Git shortcuts
[[abbr]]
key = "gcm"
expand = "git commit -m"
[[abbr]]
key = "gp"
expand = "git push"
[[abbr]]
key = "gst"
expand = "git status"
# bat as cat — only when bat is installed
[[abbr]]
key = "cat"
expand = "bat"
when_command_exists = ["bat"]Shows which rule matched and why earlier rules were skipped:
$ runex which ls --why
ls -> ls --color=auto
rule #1 skipped: when_command_exists [lsd: NOT FOUND]
rule #2 matched, no conditions
Simulates expansion and shows the full trace without touching the shell:
$ runex expand --token ls --dry-run
token: ls
rule #1 skipped: when_command_exists
lsd: NOT FOUND
matched rule #2 (key = 'ls')
conditions: none
result: expanded -> ls --color=auto
$ runex expand --token xyz --dry-run
token: xyz
no rule matched 'xyz'
result: pass-through
Shows per-phase timing breakdown of the expand flow, similar to starship timings:
$ runex timings ls --shell bash
Phase Duration
──────────────────────────────────────
config_load 1.23ms
shell_resolve 0.01ms
expand 5.67ms
command_exists: lsd 3.12ms
command_exists: ls 2.34ms
──────────────────────────────────────
Total 6.91ms
When the key argument is omitted, all abbreviation keys are timed. Use --json for machine-readable output.
When a rule fails per-field validation, parse_config returns the first error it encounters, which is the message shown in config_parse. doctor always also lists every rejected rule with its field path so you can see what else needs fixing:
$ runex doctor
[OK] config_file: found: ~/.config/runex/config.toml
[ERROR] config_parse: failed to load config: abbr rule #1: key is empty (...)
[WARN] config_rejected_rules: 3 invalid abbr field(s) found; config loading still stops at the first one
[WARN] config_validation.abbr[1].key: rule #1 field 'key' rejected: key is empty
[WARN] config_validation.abbr[2].expand: rule #2 field 'expand' rejected: expand is empty
[WARN] config_validation.abbr[3].when_command_exists[1]: rule #3 field 'when_command_exists[1]' rejected: when_command_exists entry contains a shell metacharacter or glob pattern
Array indices and rule numbers in the field path are 1-based. The field path is a logical path — it mirrors the in-memory shape (e.g. expand.pwsh, when_command_exists.default[2]), not literal TOML syntax.
Beyond config validation, doctor surfaces two categories of
environment-level checks. Each row's status (OK / WARN) tells you
whether action is required.
| Check | Status | Meaning |
|---|---|---|
effective_search_path (Windows-only) |
OK |
Reports the PATH runex uses when resolving when_command_exists entries. The breakdown entries (process=N, +user=M, +system=K) shows how many came from the inherited process PATH versus the registry's HKCU and HKLM Environment\Path. If +user or +system is non-zero, the parent process inherited a degraded PATH and runex augmented it from the registry. Useful for diagnosing command:foo not found warnings that contradict your shell's PATH. |
effective_search_path (Windows-only) |
WARN |
The process PATH is empty — almost certainly a misconfigured launcher. |
integration:bash / :zsh / :pwsh / :nu |
OK |
The rc file carries the # runex-init marker and sources the integration cache, or the rc file doesn't exist (treated as "user doesn't run that shell"). |
integration:bash / :zsh / :pwsh / :nu |
WARN |
The rc file exists but lacks the marker (run runex init <shell>), or it still runs a pre-0.1.16 runex export <shell> line instead of sourcing the cache (delete that line and run runex init <shell>). |
integration:<shell>:cache |
OK |
The cache file's header names the current schema version and a runex-bin: path that exists, or no cache exists yet (the detail names the runex init <shell> that creates it). |
integration:<shell>:cache |
WARN |
The header is missing, malformed, from an older schema version, or names a binary that no longer exists. Run runex init <shell>. |
integration:clink |
OK |
The runex.lua on disk matches what this binary would write, or no clink integration is found (treated as "user doesn't run clink"). |
integration:clink |
WARN |
The on-disk runex.lua differs from the current output, typically after upgrading runex. Run runex init clink and open a new cmd window. |
integration:clink compares file content because clink has no rc file:
the lua file is loaded directly from clink's scripts directory. The
other four shells get a marker check on the rc file plus a header check
on the cache. A template change that every user must pick up is shipped
by bumping the cache schema version, which turns every older cache into
a WARN.
The RUNEX_CLINK_LUA_PATH environment variable overrides the location
used by the clink check and by runex init clink (default candidates:
%LOCALAPPDATA%\clink\runex.lua, then ~/.local/share/clink/runex.lua
for non-Windows clink forks).
Warns about unknown fields in the config file and unreachable duplicate rules. Useful for catching typos:
$ runex doctor --strict
[OK] config_file: found: ~/.config/runex/config.toml
[OK] config_parse: config loaded successfully
[WARN] strict.unknown_field.abr: unknown top-level field 'abr' (did you mean 'abbr'?)
[WARN] strict.unknown_field.abbr[1].expad: unknown field 'expad' in abbr[1] (did you mean 'expand'?)
Edit abbreviation rules from the command line without opening the config file:
# Add a rule
runex add gcm "git commit -m"
# Add with when_command_exists condition
runex add ls lsd --when lsd
# Remove a rule
runex remove gcmBoth commands rewrite the config file in place (through a symlink if the path is one) and then regenerate every installed shell integration cache. After editing the file by hand, run the regeneration yourself:
runex config reload
# bash: refreshed /home/me/.cache/runex/integration.bash
# zsh: not installed (run `runex init zsh` to create its cache)A config that fails to load exits 1 and leaves every cache untouched.
clink is not part of this list; runex init clink rewrites its lua file.
See also: Commands — doctor, Commands — which.