ErnWong / dotfiles-old-divnix

Ironically, not many files here are actually dotfiles. Bootstrapped from https://github.com/divnix/devos
MIT License
0 stars 0 forks source link

dotfiles devos direnv does not fully load automatically #26

Closed ErnWong closed 1 year ago

ErnWong commented 2 years ago

I have to manually run direnv reload every time I enter the directory. Strange. User error?

ErnWong commented 1 year ago

Does not happen to direnv in my other repos.

ErnWong commented 1 year ago

Also note an interesting path that got added to PATH when I enter my dotfiles directory:

dotfiles  main [פֿ ]  ⎔
❯ echo $PATH
/path-not-set:/run/wrappers/bin:/home/nixos/.nix-profile/bin:/etc/profiles/per-user/nixos/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin
ErnWong commented 1 year ago

The path-not-set probably comes from this: https://github.com/numtide/devshell/blob/fc463a543e2bc497a6d0bae17fc88aa7e0cec5ee/modules/devshell.nix#L73

ErnWong commented 1 year ago

Whoops, that's not it. That is for removing the path-not-set, not inserting it :sweat_smile:

ErnWong commented 1 year ago

Seems to be fixed by https://github.com/ErnWong/dotfiles/commit/a1107b4141e1f41c2c2744193ac8033be5516290

Not sure why.