Still need to figure out the conditional here
But it's a little better
This commit is contained in:
parent
ff325014f1
commit
bea73b48fa
1 changed files with 4 additions and 2 deletions
|
|
@ -37,8 +37,10 @@ in
|
|||
source ${bash-drv}/bashrc.sh
|
||||
|
||||
# Need to figure out how to conditionally generate this
|
||||
if [[ -n $(which kubectl) ]]; then
|
||||
alias k=kubectl
|
||||
source <(kubectl completion bash | sed s/kubectl/k/g)
|
||||
fi
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue