From 2d132286bf2c38ba8e6c6f89b748459071592a7d Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Thu, 25 May 2023 21:06:09 -0400 Subject: [PATCH] direnv hook --- nix/home-manager/flake.lock | 6 +++--- zsh/zshrc | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/nix/home-manager/flake.lock b/nix/home-manager/flake.lock index a952dce..4a888c8 100644 --- a/nix/home-manager/flake.lock +++ b/nix/home-manager/flake.lock @@ -82,11 +82,11 @@ ] }, "locked": { - "lastModified": 1684824189, - "narHash": "sha256-k3nCkn5Qy67rCguuw6YkGuL6hOUNRKxQoKOjnapk5sU=", + "lastModified": 1685019994, + "narHash": "sha256-81o6SKZPALvib21hIOMx2lIhFSs0mRy0PfPvg0zsfTk=", "owner": "nix-community", "repo": "home-manager", - "rev": "58eb968c21d309a6c2b020ea8d64e25c38ceebba", + "rev": "d1f04b0f365a34896a37d9015637796537ec88a3", "type": "github" }, "original": { diff --git a/zsh/zshrc b/zsh/zshrc index 16cfe5e..e1a2f04 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -9,6 +9,7 @@ then . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh fi + bindkey -v # allow ctrl-a and ctrl-e to move to beginning/end of line bindkey '^a' beginning-of-line @@ -175,6 +176,10 @@ if (_command-exists yarn); then export PATH fi +if (_command-exists direnv); then + eval "$(direnv hook zsh)" +fi + if (_command-exists pdm); then eval "$(pdm --pep582 zsh)" fi