Skip to content

Commit

Permalink
feat(shell.completions): add kubectl completions
Browse files Browse the repository at this point in the history
  • Loading branch information
syaghoubi00 committed Feb 22, 2025
1 parent 89eb67a commit 96b0196
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .shellrc.d/70-completions/kubectl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

if command -v kubectl &>/dev/null; then
if [[ "$SHELL" =~ bash ]]; then
source <(kubectl completion bash)
fi
fi

0 comments on commit 96b0196

Please sign in to comment.