diff --git a/.dotter/global.toml b/.dotter/global.toml index be6e680..21ae811 100644 --- a/.dotter/global.toml +++ b/.dotter/global.toml @@ -54,3 +54,6 @@ leftwm = "~/.config/leftwm" [xmonad.files] xmonad = "~/.xmonad" + +[nix.files] +"direnvrc" = "~/.config/direnv/direnvrc" diff --git a/direnvrc b/direnvrc new file mode 100644 index 0000000..32f3e36 --- /dev/null +++ b/direnvrc @@ -0,0 +1 @@ +source /run/current-system/sw/share/nix-direnv/direnvrc diff --git a/zsh/.zshrc b/zsh/.zshrc index 0433c44..3c40830 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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