config-bash/completion.d/kubectl

7 lines
91 B
Bash

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