add direnv
This commit is contained in:
parent
4254221f77
commit
5bc28cd188
@ -54,3 +54,6 @@ leftwm = "~/.config/leftwm"
|
|||||||
|
|
||||||
[xmonad.files]
|
[xmonad.files]
|
||||||
xmonad = "~/.xmonad"
|
xmonad = "~/.xmonad"
|
||||||
|
|
||||||
|
[nix.files]
|
||||||
|
"direnvrc" = "~/.config/direnv/direnvrc"
|
||||||
|
1
direnvrc
Normal file
1
direnvrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
source /run/current-system/sw/share/nix-direnv/direnvrc
|
11
zsh/.zshrc
11
zsh/.zshrc
@ -99,7 +99,6 @@ plugins=(
|
|||||||
export EDITOR=/usr/bin/nvim
|
export EDITOR=/usr/bin/nvim
|
||||||
export VISUAL=/usr/bin/nvim
|
export VISUAL=/usr/bin/nvim
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
|
||||||
|
|
||||||
alias vim="nvim"
|
alias vim="nvim"
|
||||||
alias ls="ls --color"
|
alias ls="ls --color"
|
||||||
@ -127,4 +126,12 @@ notify(){
|
|||||||
notify-send $message
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user