install direnv
This commit is contained in:
parent
5f0a7b5c9e
commit
9b3c1b2eb1
2 changed files with 4 additions and 10 deletions
|
@ -1,9 +0,0 @@
|
|||
#!/bin/bash
|
||||
cfg=.kubeconfig
|
||||
|
||||
path=$(pwd)
|
||||
while [[ "$path" != "" && ! -e "$path/$cfg" ]]; do
|
||||
path=${path%/*}
|
||||
done
|
||||
|
||||
exec env KUBECONFIG="$path/$cfg:$KUBECONFIG:$HOME/.kube/config" kubectl "$@"
|
Loading…
Add table
Add a link
Reference in a new issue