Replaced which command with _command_exists

pull/1567/head
Uco Mesdag 2020-04-20 23:44:18 +02:00
parent 4ea96132d0
commit e2b5f99191
No known key found for this signature in database
GPG Key ID: 4ADCB4FA8FCAAA19
1 changed files with 1 additions and 2 deletions

View File

@ -1,2 +1 @@
CMD="$(which oc)"
[[ -x "$CMD" ]] && source <("$CMD" completion bash)
_command_exists oc && source <(oc completion bash)