document updated 12 years ago, on Jan 25, 2012
Ways to get tab-completion working in KSH, in vi mode. (NOTE: see here to find out what version you have)
AT&T ksh-88
First run set -o vi viraw.
- escape + \ — complete a filename (if it's unique)
- escape + = — list all files that match the current prefix
AT&T ksh-93
First run set -o vi.
- escape + \ — complete a filename (if it's unique)
- escape + = — list all files that match the current prefix
public domain ksh (pdksh)
First run set -o vi-tabcomplete.
- tab — works pretty much exactly like it does in bash/tcsh/etc
Or you can use set -o vi-esccomplete, and then you get:
- escape, escape — complete a filename (if it's unique)
- escape + = — list all files that match the current prefix