6

How can I print my current configuration including defaults and key bindings?

This would allow me for example, to find what action is bound to say ^P in emacs mode and find binding in vi mode or set if it is not there instead of browsing manuals.

1 Answer 1

11

All key bindings:

for m ($keymaps) bindkey -LM $m

All ZLE user widgets

zle -lL

All zstyles:

zstyle -L

Loaded modules:

zmodload -L

All variables:

typeset -p +H -m '*'

With the zsh/parameters module loaded, that will also include aliases, options, functions...

1
  • 1
    Great answer. But be careful with typeset -p +H -m '*', the output may break your terminal, if not redirected, as there are a few variables containing escape sequences, for example terminfo.
    – Adaephon
    Feb 28, 2014 at 6:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .