install direnv

This commit is contained in:
Daniel Lundin 2020-09-05 13:20:38 +02:00
parent 5f0a7b5c9e
commit 9b3c1b2eb1
No known key found for this signature in database
GPG key ID: 6AB527C9196ACDCC
2 changed files with 4 additions and 10 deletions

View file

@ -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 "$@"