General Computing
keyboard-shortcuts zsh iterm2 key-binding
Updated Tue, 21 Jun 2022 16:33:16 GMT

Finish command from history

A couple of years ago I enabled "finish text" command on iTerm2 + ZSH. For example, if I had "git commit" in my command history in a new command window if I typed "gi" "t history" would be viewable but slightly transparent and I could press right arrow on keyboard to finish command. I forget how I enabled this and have been searching how to enable but cannot find the method.

How to enable "finish command based on history" by pressing right arrow on iterm2 + zsh ?


You might have installed zsh-autosuggestions.

To use it, add the following to ~/.zshrc :

antibody bundle zsh-users/zsh-autosuggestions

External Links

External links referenced by this document: