mahsoud / boar

Automatically exported from code.google.com/p/boar
0 stars 0 forks source link

Tab Completion in Bash shell #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Definitely a low priority "convenience" feature... but tab completion for 
commands and sessions would be great. Would be especially nice for sessions 
with subpath/offset components :)

In a related vein, a --color=WHEN style switch for shells that support color 
would be great too as far as the someday maybe features go ;)

Original issue reported on code.google.com by cryptob...@gmail.com on 21 Dec 2011 at 5:29

GoogleCodeExporter commented 9 years ago
Would certainly be nice. Not entirely sure how you do that though. Certainly 
more a shell feature than a Boar feature, but possibly it needs some help from 
Boar. I'll limit this issue to support for Bash for now (as that is what I use 
myself). 

Original comment by ekb...@gmail.com on 29 Dec 2011 at 2:10

GoogleCodeExporter commented 9 years ago
Most bash/cli tools that implement tab completion have a xyz_completion.sh 
script that can be copied into the /etc/bash_completion, 
/etc/bash_completion.d/*, or similar folders and get loaded for people that 
have programmable completion enhancements sourced in their bashrc file. Those 
same folders are also good places to look for examples of tab completion 
scripts for other tools.

The following are some good articles on implementing programmable tab 
completion for bash: 
http://aplawrence.com/Unix/customtab.html
http://tldp.org/LDP/abs/html/tabexpansion.html
https://encrypted.google.com/search?hl=en&q=bash%20programmable%20completion 
(obviously turns up many more)

Original comment by cryptob...@gmail.com on 15 Jan 2012 at 12:51