# opencode-devbox readline defaults
# To override, bind-mount your host's ~/.inputrc over this file
# via docker-compose.yml.

# Inherit system-wide defaults (colour, 8-bit input, …) if present
$include /etc/inputrc

# ── History search on Up/Down ────────────────────────────────────────
# Type a prefix, press Up, and walk through previous commands starting
# with that prefix. Ctrl-Up / Ctrl-Down keep the unconditional stepper.
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[1;5A": previous-history
"\e[1;5B": next-history

# ── Completion quality ───────────────────────────────────────────────
set show-all-if-ambiguous on      # single Tab shows matches on ambiguity
set completion-ignore-case on     # case-insensitive file/dir completion
set colored-stats on              # colour ls-style completion list entries
set colored-completion-prefix on  # highlight the matched prefix
set visible-stats on              # append /*@ type indicators in completion
set mark-symlinked-directories on # add trailing / to symlinks to dirs
set skip-completed-text on        # don't re-insert already-typed text

# Treat hyphens and underscores as equivalent when completing (e.g.
# typing `foo-` matches both `foo-bar` and `foo_bar`).
set completion-map-case on
