[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SOLVED] Re: Bash completion für eigene Scripte



jftr:

Ist jetzt gelöst mit einer Datei in /etc/bash_completion.d/

> # -*- mode:shell-script -*-
> 
> # Programmable completion for my own "sicherung"-script.
> 
> #  Author :  Russel Winder
> #  Version :  2006-07-31T19:14
> #  Licence : GPL
> #  Modified: Ulrich Fürst
> 
> _sicherung()
> {
>     local cur
>     cur=${COMP_WORDS[COMP_CWORD]}
> 
>     if [[ "$cur" == * ]]; then
>         COMPREPLY=( $( compgen -W 'all config data homes ulrich\
>         birgit root mozilla cdrom'  -- "$cur" )) 
>     fi 
> }
> complete -F _sicherung $filenames sicherung


Ulrich



Reply to: