diff --git a/.zshrc b/.zshrc index 83d8f92..028ffaa 100644 --- a/.zshrc +++ b/.zshrc @@ -233,6 +233,10 @@ function parse_git_dirty() { export RPS1="%F{#455A64}\$(kubectl config current-context)" +## direnv + +eval "$(direnv hook zsh)" + ## fzf export FZF_TMUX=1 export FZF_COMPLETION_TRIGGER=";" @@ -259,7 +263,6 @@ alias ag='ag --pager less' alias cdiff='colordiff -u' alias dotgit='git --work-tree $HOME --git-dir $HOME/.dot_git' alias hs='history -a; history -n' -alias kubectl='kubectl-wrapper' alias lower="tr '[:upper:]' '[:lower:]'" alias pstree="pstree -Auh | less" alias tail='tail -n $LINES' diff --git a/bin/kubectl-wrapper b/bin/kubectl-wrapper deleted file mode 100755 index 7e3a091..0000000 --- a/bin/kubectl-wrapper +++ /dev/null @@ -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 "$@"