Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

autocomplete path using tab

Status
Not open for further replies.

ksbrace

Programmer
May 13, 2000
501
US
Hello,
I'm trying to setup my profile or change my shell to a shell where when I type in part of the path and hit 'TAB', it auto completes it for me. my current shell is ksh93n.

Thanks in advance!
Kelly

 
bash does that kind of outcomplete with 'tab'

ksh (don't know about your particular flavour) does the same, but it is a bit awkward because you need to type ESC* (escape, followed by asterisk) for it to autocomplete.


HTH,

p5wizard
 
do

set -o emacs

then hit escape twice to complete

cd /perf<esc><esc> = cd /performance



Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
esc*" completion is with vi-like history processing (set -o vi)


HTH,

p5wizard
 

I do use vi mode of teh ksh shell, thus I use ESC* for auto complete. BUT there is a bash package on the Linux toolbox page, you can jut download it, install it and set your shell to bash.

And if you are not the admin of the mentioned system, you can bring a beer to the admin to do the same for you :)

(remark: I did not install it)

--Trifo
 
When you bring the admin the beer, remind them that they'll need to add /opt/freeware/bin/bash to the 'shells' value in the 'usw' stanza of /etc/security/login.cfg before it will be accepted as a default shell by the *user functions.

- Rod


IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

Wish you could view posts with a fixed font? Got Firefox & Greasemonkey? Give yourself the option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top