PHP 7.4.33
Preview: iprconfig Size: 829 B
//etc/bash_completion.d/iprconfig

#  IBM IPR adapter configuration utility
#
#  (C) Copyright 2000, 2015
#  International Business Machines Corporation and others.
#  All Rights Reserved. This program and the accompanying
#  materials are made available under the terms of the
#  Common Public License v1.0 which accompanies this distribution.

_comp_iprconfig () {
    iprconfig="${COMP_WORDS[0]}"
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"

    case "${prev}" in
	"-c")
	    opts=$(${iprconfig} -l 2>/dev/null)
	    COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
	    ;;
	"-k")
	    COMPREPLY=( $(compgen -o dirnames -- ${cur}) )
	    ;;
	*)
	    opts=$(find /dev -printf "%f\n" | grep -G "^\(sd\|sg\)")
	    COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
	    ;;
    esac
    return 0;
}
complete -F _comp_iprconfig iprconfig

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
6.33 KB lrw-r--r-- 2022-12-01 13:02:17
Edit Download
829 B lrw-r--r-- 2020-05-08 14:19:42
Edit Download
284 B lrw-r--r-- 2022-04-21 18:08:33
Edit Download
2.61 KB lrw-r--r-- 2017-08-25 08:23:02
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).