bash-completion.sh
branchv_0
changeset 31 c64e1588f428
parent 29 6f15f18d2abf
child 45 f466b4c7d9b1
equal deleted inserted replaced
30:56409232e1a1 31:c64e1588f428
    58 	elif [[ "$w1" == "--as"            && "x$w0" == "x" ]];    then COMPREPLY=("''")
    58 	elif [[ "$w1" == "--as"            && "x$w0" == "x" ]];    then COMPREPLY=("''")
    59 	elif [[ "$w1" == "--option"        && "x$w0" == "x" ]];    then COMPREPLY=("''")
    59 	elif [[ "$w1" == "--option"        && "x$w0" == "x" ]];    then COMPREPLY=("''")
    60 	elif [[ "$w2" == "--option"        && "x$w0" == "x" ]];    then COMPREPLY=("''")
    60 	elif [[ "$w2" == "--option"        && "x$w0" == "x" ]];    then COMPREPLY=("''")
    61 	elif [[ "$w1" == "--file"                           ]];    then COMPREPLY=($(compgen -W "${FILE_FIELDS[*]}"  -- "$w0"))
    61 	elif [[ "$w1" == "--file"                           ]];    then COMPREPLY=($(compgen -W "${FILE_FIELDS[*]}"  -- "$w0"))
    62 	elif [[ "$w1" == "--xattr"                          ]];    then COMPREPLY=($(compgen -W "${XATTR_FIELDS[*]}" -- "$w0"))
    62 	elif [[ "$w1" == "--xattr"                          ]];    then COMPREPLY=($(compgen -W "${XATTR_FIELDS[*]}" -- "$w0"))
    63 	elif [[ "$w1" == "--exec"                           ]];    then COMPREPLY=($(compgen -W "$(_relpipe_in_filesystem_scripts)" -- "$w0"))
    63 	elif [[ "$w1" == "--streamlet"                      ]];    then COMPREPLY=($(compgen -W "$(_relpipe_in_filesystem_scripts)" -- "$w0"))
    64 	else
    64 	else
    65 		OPTIONS=(
    65 		OPTIONS=(
    66 			"--relation"
    66 			"--relation"
    67 			"--file"
    67 			"--file"
    68 			"--xattr"
    68 			"--xattr"
    69 			"--exec"
    69 			"--streamlet"
    70 			"--as"
    70 			"--as"
    71 			"--option"
    71 			"--option"
    72 		)
    72 		)
    73 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    73 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    74 	fi
    74 	fi