[Bash-completion-devel] .netrc support for ftp, lftp, sitecopy, [curl, fetchmail, ... wget]

2009-11-20 Thread gibboris
Hi, all those precited commands use the .netrc file if it exists. I would like to have some support for it. Kind of : [[ -r $HOME/.netrc ]] \ netrc_hosts=( $(compgen -W $(sed -n 's/.*[[:blank:] ]*machine \([^ [:blank:]]*\).*/\1/p' $HOME/.netrc) -- ${cur:-1}) ) \ COMPREPLY=(

Re: [Bash-completion-devel] .netrc support for ftp, lftp, sitecopy, [curl, fetchmail, ... wget]

2009-11-20 Thread Freddy Vulto
On 091120 15:13, gibbo...@gmail.com wrote: Should this go into _known_hosts_real ? _known_host_netrc ? ${1} or SIDE NOTE: If all agree `_known_hosts_real' gets renamed to `__known_hosts'? That said, I'd rather have a separate `__hosts_netrc' and keep `_known_hosts_real' for completing commands