diff --git a/completions/java b/completions/java index 31dcd311..ee3e5136 100644 --- a/completions/java +++ b/completions/java @@ -233,7 +233,7 @@ _java() fi [[ ${#COMPREPLY[@]} -eq 1 && ${COMPREPLY[0]} == -*[:=] ]] && \ - type compopt &>/dev/null && compopt -o nospace + compopt -o nospace __ltrim_colon_completions "$cur" } && @@ -381,7 +381,7 @@ _pack200() --verbose --quiet --log-file= --help --version -J \ --repack' -- "$cur" ) ) [[ ${#COMPREPLY[@]} -eq 1 && ${COMPREPLY[0]} == *= ]] && \ - type compopt &>/dev/null && compopt -o nospace + compopt -o nospace else _filedir 'pack?(.gz)' fi @@ -426,7 +426,7 @@ _unpack200() COMPREPLY=( $( compgen -W '--deflate-hint= --remove-pack-file \ --verbose --quiet --log-file= --help --version' -- "$cur" ) ) [[ ${#COMPREPLY[@]} -eq 1 && ${COMPREPLY[0]} == *= ]] && \ - type compopt &>/dev/null && compopt -o nospace + compopt -o nospace else _filedir 'pack?(.gz)' fi diff --git a/completions/smartctl b/completions/smartctl index e7e71836..2b93a150 100644 --- a/completions/smartctl +++ b/completions/smartctl @@ -34,7 +34,7 @@ _smartctl_device() -- "$cur" ) ) case "${COMPREPLY[@]}" in areca|3ware|hpt|megaraid|cciss) - type compopt &>/dev/null && compopt -o nospace + compopt -o nospace ;; esac ;; @@ -90,7 +90,7 @@ _smartctl_test() select,redo select,next afterselect,on afterselect,off pending, scttempint, vendor,' -- "$cur" ) ) [[ ${#COMPREPLY[@]} -eq 1 && "${COMPREPLY[@]}" == *, ]] && \ - type compopt &>/dev/null && compopt -o nospace + compopt -o nospace } _smartctl_drivedb() { diff --git a/completions/ssh b/completions/ssh index 775b5f51..4ded71df 100644 --- a/completions/ssh +++ b/completions/ssh @@ -27,7 +27,7 @@ _ssh_macs() _ssh_options() { - type compopt &>/dev/null && compopt -o nospace + compopt -o nospace COMPREPLY=( $( compgen -S = -W 'AddressFamily BatchMode BindAddress \ ChallengeResponseAuthentication CheckHostIP Cipher Ciphers \ ClearAllForwardings Compression CompressionLevel ConnectionAttempts \ @@ -327,7 +327,7 @@ _scp() ;; -F|-i|-S) _filedir - type compopt &>/dev/null && compopt +o nospace + compopt +o nospace return 0 ;; -c)