"Fossies" - the Fresh Open Source Software Archive

Member "reptyr-reptyr-0.8.0/reptyr.bash" (29 Sep 2020, 369 Bytes) of package /linux/privat/reptyr-reptyr-0.8.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 # bash completion for reptyr(1)
    2 
    3 _reptyr()
    4 {
    5     case $3 in
    6         -l|-L|-h|-v) return ;;
    7     esac
    8 
    9     if [[ $2 == -* ]]; then
   10         COMPREPLY=( $(compgen -W '-l -L -s -T -h -v -V' -- "$2") )
   11         return
   12     fi
   13 
   14     case $3 in
   15         [1-9]*) ;;
   16         *) COMPREPLY=( $(compgen -W '$(command ps axo pid=)' -- "$2") ) ;;
   17     esac
   18 } &&
   19 complete -F _reptyr reptyr