Skip to content

Instantly share code, notes, and snippets.

View heberop's full-sized avatar

Heber Ortiz Pereira heberop

  • Dublin, Ireland
View GitHub Profile
@vyaslav
vyaslav / add_to_bashrc.sh
Created October 10, 2020 19:32
aliases for kubectl with autocomplete
source <(kubectl completion bash)
__start_kubectl_cust()
{
local cur prev words cword
declare -A flaghash 2>/dev/null || :
if declare -F _init_completion >/dev/null 2>&1; then
_init_completion -s || return
else
__kubectl_init_completion -n "=" || return
fi