Elektrine lite

← Feed

@brianokken@fosstodon.org

Post #2626884

2025-07-07 00:49 UTC

@treyhunner@mastodon.social @hynek@mastodon.social @webology@mastodon.social Yeah, yeah, I’m now almost convinced to give direnv another chance

Replies (3)

  • @webology@mastodon.social 2025-07-07 01:48

    @brianokken@fosstodon.org @treyhunner@mastodon.social @hynek@mastodon.social even if you only use it to auto-load/auto-unload ENV variables, it's the best tool for managing this. I'm going to look into moving more of my virtualenv-wrapper hooks into direnv this week. I was already working on it, but I think I'm far enough along, I can shuffle some files and migrate easily enough.

    Open ##2626885

  • @treyhunner@mastodon.social 2025-07-07 03:37

    @brianokken@fosstodon.org @hynek@mastodon.social @webology@mastodon.social here's the setup I stumbled upon that finally sold me on direnv. There's some starship stuff in there but you don't need it to make direnv useful. The zsh setup in there really helped me move away from virtualenverapper. The latest version is in my dotfiles repo with a few suggestions folks sent me after I wrote that. Edited to add the missing link! https://treyhunner.com/2024/10/switching-from-virtualenvwrapper-to-direnv-starship-and-uv/

    Open ##2626886

  • @pythonbynight@hachyderm.io 2025-07-07 05:09

    @brianokken@fosstodon.org @treyhunner@mastodon.social @hynek@mastodon.social @webology@mastodon.social Just piping in here with the 2 cents worth of a blog post with my setup embracing most of these tools... https://pythonbynight.com/blog/terminal

    Open ##2626919