Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to make a backward TAB as Shift-TAB in Zsh

Tags:

tabs

zsh

Problem: to navigate backwards with TAB in Zsh similarly as in Firefox by

Shift-TAB 

Example of what Shift-TAB should do

I run the following code in terminal

ls <TAB> 

I get

A B C D E F G H I J K H L M N... 

I see the following in Zsh as I press TAB alt text http://dl.getdropbox.com/u/175564/smallEx.png

I navigate to the folder J by TAB. Then, I observe that I pressed once too often the tab key.

How can you make a backward TAB for Zsh similar as Firefox's Shift-TAB?

like image 883
Léo Léopold Hertz 준영 Avatar asked May 02 '09 21:05

Léo Léopold Hertz 준영


1 Answers

Try this:

bindkey '^[[Z' reverse-menu-complete 

If this doesn't work, try running executing zsh like this (which does setopt MENU_COMPLETE):

zsh -Y 

and then try again!

like image 79
ypsu Avatar answered Sep 21 '22 21:09

ypsu