You mean the list of possible completions? It's not exactly what you
asked for, but look at the readline `visible-stats' variable. That
produces output in the style of `ls -F'.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU ch...@case.edu http://cnswww.cns.cwru.edu/~chet/
A bit off topic here, but note that zsh supports that and can
use GNU ls's configuration as well ($LS_COLORS). zsh is largely
compatible with bash. You can use "compinstall" to configure
the completion, or you could try those settings (they have been
generated by compinstall for me):
(set -C && dircolors -p > ~/.dircolors) 2> /dev/null
eval "$(dircolors -b ~/.dircolors)"
zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate _prefix
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' max-errors 1 not-numeric
zstyle ':completion:*' menu select=2
zstyle ':completion:*' original true
zstyle ':completion:*' prompt 'correct> '
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
autoload -U compinit
compinit -i
(you need a relatively recent version of zsh (at least
3.1.5-pws-24, circa 1999) (some OSes like Solaris come with a
very old version of zsh (or at least used to))).
--
Stï¿œphane