config-bash/completion.d/kubectl

7 lines
94 B
Bash

#!/bin/bash
if (command -v kubectl &> /dev/null)
then
source <(kubectl completion bash)
fi