of _get_comp_words_by_ref(). (the -n flag excludes a character from
COMP_WORDBREAK)
good luck
PS: let me know if you find a proper solution, I had a similar problem
with completions starting by 'http://'.
Raph
___
Bash-completion-devel mailing list
Bash-completion-devel
=${cur%\%*}%
suf=${cur##*%}
COMPREPLY=( $( compgen -P ${pref} -W abc bbb cde -- $suf )
but I guess he would like the other way...
and I'm interested too in knowing how to deals with COMP_WORDBREAK,
(especially using properly the API)
Raph
On Mon, May 23, 2011 at 10:57:14PM +0200, Raph wrote:
[...]
I'm interested too in knowing how to deals with COMP_WORDBREAK,
(especially using properly the API)
May be seen as a thread hijack but I think this is related:
The attached completion, is the only way I found to have a consistent
On Tue, May 03, 2011 at 09:22:00PM +0300, Ville Skyttä wrote:
On 04/06/2011 04:29 PM, Raph wrote:
Hi,
here I put some bash-completion stuff there:
https://gitorious.org/drzraf/bash-completion
Sorry for taking so long, here are some comments and excuses ;)
You'll find:
- the patch
just a ping (updated patch attached).
For reference: [#311708]
+
http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg01673.html
May also help solving [#312795]
regards
Raph
On Tue, Dec 29, 2009 at 11:05:27PM +0100, gibbo...@gmail.com wrote:
Hi,
I rewrote
these subjects ?
sorry for such a long oration.
Raph
# bash completion for test
_comptest()
{
local cur
COMPREPLY=()
_get_comp_words_by_ref cur
# ex1
COMPREPLY=( $( compgen -f -- $cur ) )
# ex2: no completion ($cur starts with a character, wordlist elements contains
shell-color
=( ${COMPREPLY[@]}
$( compgen -P $prefix$user -S $suffix -W $(awk
'{for(i=1;i=NF;i++){if($i==machine){j=i+1;print $j}}}' $HOME/.netrc) --
$cur ) )
fi
sincerely,
Bandie
+1
(http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg01534.html)
Raph
they expect to be completed, filenames or
command arguments (tab or Alt+/) ?
Raph
___
Bash-completion-devel mailing list
Bash-completion-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel
[ putting the bash completion mailing-list in CC: ]
On Sat, Oct 16, 2010 at 04:21:21PM +0200, Marek D. wrote:
Hi,
I tried to use tc completition and:
and after tc and tab I've got:
Hi,
this attempt is now more than a year old.
But I don't currently use 'tc' nor I expect any exhaustive or
On Tue, Apr 13, 2010 at 12:54:25PM +0100, Martin Eve wrote:
Hi all,
I attempted to submit a bug report to
https://alioth.debian.org/tracker/index.php?func=detailaid=312458group_id=100114atid=413095
which did not attach my patch. Alioth is refusing to let me create a
new account; hence the
needs another $PATH than the user's original one
In this later case, we may use something like $(have -p $cmd) to get the
absolute path echoed and use it if needed.
Or a backward compatible solution :
- echo the absolute path of the command if found
- return 1 otherwise
my 2c
Raph
On Thu, Jun 18
Hello,
as my previous email didn't succeed,
this time I attached a gzip'ed version.
Raph
On Sun, May 31, 2009 at 01:42:26AM +, Raph wrote:
Hello,
today was a bit rainy, a perfect weather
to try tc and to begin the first percent
of it's completion (300 lines)
enjoy
Raph
tc.gz
Hello,
a quick attempt to make the
completion of xsltproc.
See attachement.
Raph
have xsltproc {
_xsltproc()
{
local cur prev
COMPREPLY=()
cur=`_get_cword`
prev=${COMP_WORDS[COMP_CWORD-1]}
case $prev in
-@(-output|o
13 matches
Mail list logo