The following lines - `bindkey '^[[A' history-substring-search-up bindkey '^[[B' history-substring-search-down` did not work in my mac, not sure why But adding the following lines worked perfectly `bindkey '^[OA' history-substring-search-up bindkey '^[OB' history-substring-search-down` Please add this in your readme. Even though when I tried using cat -v It showed ^[[A and ^[[B So not really sure why ^[OA and ^[OB worked, but this can be helpful for future viewers