Christian Ferbar <ch...@qnipp.com> writes:

> --- /etc/bash_completion.d/subversion 2015-08-11 22:17:11.808000000 +0200
> +++ subversion        2015-08-12 11:13:42.135616669 +0200
> @@ -420,6 +420,16 @@
>  
>                       COMPREPLY=( $(compgen -W "$choices" -- $suffix ) )
>                       return
> +        elif [[ $cmd == @(ls|list) && $cur == ^/* ]] ; then
> +          # autocomplete für svn ls ^/bla
> +          if [[ $cur =~ ((.*/)([^/]*)) ]] ; then
> +            url="${BASH_REMATCH[2]}"
> +             path="${BASH_REMATCH[3]}"
> +            remote_files="$(svn ls "$url")"

What about error messages from the command?  Should they be dropped or
displayed?  What about authentication prompts?  Is --non-interactive
needed?

-- 
Philip Martin
WANdisco

Reply via email to