4

Is there any way to interactively run a ZLE command on the current line?

I am looking for a similar way to TMUX's command-prompt, which default keybinding is prefix : were you can run a TMUX command on the current session.

Use case: run a ZLE command that doesn't have any keybinding on the current line.

Thanks

1 Answer 1

4

Yes, there is, and it's called execute-named-cmd. By default, it's bound to AltX in Zsh's "emacs" keymap and to : in the "vicmd" keymap (to which you can switch by pressing Alt or Esc in the "viins" keymap).

You must log in to answer this question.

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