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

5
.zshrc
View file

@ -233,6 +233,10 @@ function parse_git_dirty() {
export RPS1="%F{#455A64}\$(kubectl config current-context)" export RPS1="%F{#455A64}\$(kubectl config current-context)"
## direnv
eval "$(direnv hook zsh)"
## fzf ## fzf
export FZF_TMUX=1 export FZF_TMUX=1
export FZF_COMPLETION_TRIGGER=";" export FZF_COMPLETION_TRIGGER=";"
@ -259,7 +263,6 @@ alias ag='ag --pager less'
alias cdiff='colordiff -u' alias cdiff='colordiff -u'
alias dotgit='git --work-tree $HOME --git-dir $HOME/.dot_git' alias dotgit='git --work-tree $HOME --git-dir $HOME/.dot_git'
alias hs='history -a; history -n' alias hs='history -a; history -n'
alias kubectl='kubectl-wrapper'
alias lower="tr '[:upper:]' '[:lower:]'" alias lower="tr '[:upper:]' '[:lower:]'"
alias pstree="pstree -Auh | less" alias pstree="pstree -Auh | less"
alias tail='tail -n $LINES' alias tail='tail -n $LINES'

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