add direnv

This commit is contained in:
Julian Mutter 2023-03-11 14:18:22 +01:00
parent 4254221f77
commit 5bc28cd188
3 changed files with 13 additions and 2 deletions

View File

@ -54,3 +54,6 @@ leftwm = "~/.config/leftwm"
[xmonad.files]
xmonad = "~/.xmonad"
[nix.files]
"direnvrc" = "~/.config/direnv/direnvrc"

1
direnvrc Normal file
View File

@ -0,0 +1 @@
source /run/current-system/sw/share/nix-direnv/direnvrc

View File

@ -99,7 +99,6 @@ plugins=(
export EDITOR=/usr/bin/nvim
export VISUAL=/usr/bin/nvim
source $ZSH/oh-my-zsh.sh
alias vim="nvim"
alias ls="ls --color"
@ -127,4 +126,12 @@ notify(){
notify-send $message
}
eval "$(starship init zsh)"
source $ZSH/oh-my-zsh.sh
if type starship &> /dev/null; then
eval "$(starship init zsh)"
fi
if type direnv &> /dev/null; then
eval "$(direnv hook zsh)"
fi