 |
 |
bash tab completion query
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Badfort
Status:
Offline
|
|
I'm trying to make my bash environment in 10.3 as much like my tcsh one as possible, but i've become stuck with tilde completion in cd.
In tsch (with the Project Athena setup from /usr/share/tcsh/examples) i can type hit tab, and get a list of all users. If i just type and tab,i get a list of directories only.
In bash, i can setup complete to give either the users list behaviour, or the directories list, but not both (ie cd <tab> gives you directories, cd ~ <tab> gives users). Any smart ideas as to how this can be achieved?
|
|
You see, my friends, pirates are the key. - thalo
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Oct 2000
Location: Midwest
Status:
Offline
|
|
In ~.bashrc I have:
set completion-ignore-case on
Enter ~ and press the Tab key twice. There it is.
Craig
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Badfort
Status:
Offline
|
|
Hmm, that just gives you case-insensitive complete, i already have it set in ~/.inputrc. Are you typing 'cd ~' or just '~'?
BTW if you don't like having to press tab twice, you can add
set show-all-if-ambiguous on
I have tilde completion elsewhere, my issue is that i can have cd either complete only directories, or ~users, but not both in context, like tcsh.
|
|
You see, my friends, pirates are the key. - thalo
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Feb 2003
Location: Oz
Status:
Offline
|
|
I read somewhere, sometime ago, that the maintainer of the fink packaged bash distribution had set it up along similiar lines to the /usr/share/tcsh/examples setup
Whether this is still the case, and whether it actually achieves what you want - I dunno
|
- be stirred but never shaken -
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Status:
Offline
|
|
Originally posted by Jellytussle:
I'm trying to make my bash environment in 10.3 as much like my tcsh one as possible ..... Any smart ideas as to how this can be achieved?
Maybe this is too easy, but if you want tcsh then just use tcsh?
-
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|