add direnv

This commit is contained in:
LavaDesu 2021-05-26 22:29:45 +07:00
parent 7149166a2f
commit 26f2a05b96
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 9 additions and 0 deletions

View file

@ -47,6 +47,11 @@
programs = {
feh.enable = true;
direnv = {
enable = true;
enableNixDirenvIntegration = true;
};
git = {
enable = true;
userName = "LavaDesu";

View file

@ -68,6 +68,9 @@ let
echo -ne '\e[5 q'
preexec() { echo -ne '\e[5 q' ;}
'';
direnv = ''
eval "$(direnv hook zsh)"
'';
viExtraNav = ''
bindkey -M menuselect 'h' vi-backward-char
bindkey -M menuselect 'k' vi-up-line-or-history
@ -130,6 +133,7 @@ in rec {
'';
initExtra = lib.concatStringsSep "\n" [
cursorShape
direnv
genAbbrs
viExtraNav
];