I'm never using .env files ever again

  Рет қаралды 39,021

DevOps Toolbox

DevOps Toolbox

Күн бұрын

Direnv Changes HOW YOU WORK!
Funny how some projects are available for so long but it takes time to discover them and for them to "click" into my workflow.
Direnv is the perfect example for a simple yet brilliant little helper.
Ways to support this channel:
🎓 Build a Second Brain With Neovim in Under 90 Minutes: learn.omerxx.c...
📰 Become a better engineer in just 3 minutes a week: signup.omerxx.com
⌨️ Tech I use: kit.co/omerxx/...
LINKS
▶ github.com/ome...

Пікірлер: 66
@ClariNerd
@ClariNerd Ай бұрын
Looks good and I will probably use it, but not at work because corporations seem to go by the adage "if it works, don't use it"
@bitafoot
@bitafoot Ай бұрын
Actually using it at work
@petertillemans2231
@petertillemans2231 Ай бұрын
Direnv is a game changer. I also love the eMacs package which integrates with it seamlessly.
@HarshaVardhan-rb7ju
@HarshaVardhan-rb7ju Ай бұрын
I personally use self hosted infisical instances for both work and personal projects and it has been the best tech I’ve integrated. The cli, sdk and api works all the way from dev env till kubernetes in production
@JD-qo9wk
@JD-qo9wk 27 күн бұрын
Same here. I like it more than Hashicorp Vault but have to use Vault at work so I just use Infisical for personal projects
@Tony_Sol
@Tony_Sol Ай бұрын
Prefer mise for these purposes Yeah, it still doesn’t load just .env on cd, but the other functions good enough
@snieguzary
@snieguzary 27 күн бұрын
nix-env installation is pretty much going agains everything that nix stands for by bringing back the imperativeness they aimed to get rid. it's discouraged even in the docs.
@devopstoolbox
@devopstoolbox 26 күн бұрын
It's a nice-to-have at this point. I'll use it rarely when I test something or need a temp installation of a cli
@snieguzary
@snieguzary 26 күн бұрын
@@devopstoolbox that's what nix shells are for. Polluting your profile is non maintainable long term. You of course can do it but by doing it you forfit all the benefits that come with declarative approach. I just don't want you to make a video in few weeks that "nix is not solving anything" based on your misuse of it. Especially when I saw in your other videos that you know better and yet you still promote bad practices. Remember that you have a lot of influence and therefore should be held to higher standards. Cheers
@EmiNNsoNify
@EmiNNsoNify 15 күн бұрын
@@snieguzary "misuse" :D It's not misuse if it's still an available option. Nix guys should remove it if it's misuse but they focus on creating an OS instead of improving as a package manager. Cheers :)
@snieguzary
@snieguzary 15 күн бұрын
@@EmiNNsoNify maybe wording was not too great but my point is: nix guarantees X only if you follow A,B and C. While you can skip any of those it's not recommended. And I have seen too many times people ignoring e.g. A and claiming that they didn't get the X.
@EmiNNsoNify
@EmiNNsoNify 15 күн бұрын
@@snieguzary maybe my wording wasn't the best. I know what nix offers, my point is you should get off your high horse. It doesn't matter which nix style he uses to install the tool. Using nix in the video is the biggest promo for nix and for people that are after "A and B and C must be done fox X" will find that for themselves. RTFM. Though to be honest Nix manual is not really friendly.
@TheBurntHoney
@TheBurntHoney Ай бұрын
You can configure direnv to I load a .env file if a .envrc file doesn’t exist
@devopstoolbox
@devopstoolbox 29 күн бұрын
@@TheBurntHoney 100%. But that would make a long title 😅
@TheBurntHoney
@TheBurntHoney 29 күн бұрын
@@devopstoolbox fair enough
@ZiggleFingers
@ZiggleFingers Ай бұрын
the parts about adding adding things to your shell init are so painful to watch being a home-manager user.
@1234minecraft5678
@1234minecraft5678 29 күн бұрын
i use it to set up utility scripts that i only need in certain environments, is a great tool.
@oserodal2702
@oserodal2702 18 күн бұрын
How does dotenvx compare to something like sops?
@marcodebortoli
@marcodebortoli Ай бұрын
I've been using direnv for so long now that I cannot believe so many people still don't know or use it.
@chyldstudios
@chyldstudios Ай бұрын
I’m downloading now …
@devopstoolbox
@devopstoolbox 4 күн бұрын
Join 2000+ subscribers getting one dev/sec/ops tip every Friday: signup.omerxx.com
@ArunNegi-fi8di
@ArunNegi-fi8di Ай бұрын
it's time to change the stack
@typecraft_dev
@typecraft_dev Ай бұрын
Awesome title!
@ArunNegi-fi8di
@ArunNegi-fi8di Ай бұрын
@typecraft_dev got this as recommendation 😄
@thenaman047
@thenaman047 Ай бұрын
oh heyyy
@devopstoolbox
@devopstoolbox Ай бұрын
@@typecraft_dev but where’s the thumbnail??
@ArunNegi-fi8di
@ArunNegi-fi8di Ай бұрын
@@devopstoolbox but why are you also here
@dkx8477
@dkx8477 16 күн бұрын
Then devbox (nix behind the scenes, and has direnv integration when enabled) could be interesting to cover in a future video (I am using it myself in some projects).
@devopstoolbox
@devopstoolbox 15 күн бұрын
I'm totally on it!
@garciajero
@garciajero Ай бұрын
you know i have seen people using direnv etc but we use Makefiles where we declare everything within it and we run them only on the context of the executable the makefile might call there's other ways but eg `ENV=prod ./binary` , i never really found the need for direnv yet
@devopstoolbox
@devopstoolbox Ай бұрын
@@garciajero valid point 👌 Most people don’t use makefiles tho, not sure why, maybe because of how many JS devs out there loving env files and don’t share the love for makefiles 🤷‍♂️ BTW I recently started working with Just and Task (the Rust / Go alternatives to make) and they’re awesome if you don’t need them to run on random remote machine you don’t control
@loo_9
@loo_9 Ай бұрын
if you enjoy make you should check out just/justfile. just uses the recipe idiom of make, while adding features and removing things like phony. I’ve been using it for a while as a script runner that’s independent of any build tool and i think it’s really nice
@vaisakhkm783
@vaisakhkm783 Ай бұрын
Is your keyboard truly ergonomic? Thumb's seems to be bend and looks painful... wow, i never though direnv is so powerful, i pnly used it for loading nix dev shells
@devopstoolbox
@devopstoolbox 29 күн бұрын
@@vaisakhkm783 the bend makes it actually more “natural” for the thumb. I can’t say I use the entire thumb cluster often, mainly the two closer keys but I do like it. If I’d redesign I’d bring it a tiny bit closer
@jaimeHMol
@jaimeHMol 21 күн бұрын
Good video, brw subscriber here! Which switches do you use in your keyboard?, they sound so nice!
@devopstoolbox
@devopstoolbox 19 күн бұрын
@@jaimeHMol these are the Gateron Milky Yellow, they come pre lubed too!
@GordeyStrokin
@GordeyStrokin Ай бұрын
can you share your zsa layouts link please?
@devopstoolbox
@devopstoolbox Ай бұрын
@@GordeyStrokin I’ve been asked multiple times and I promise I’ll do it soon with a video covering it, because ATM it’s a pile of mess that won’t make sense to most
@bikramtuladhar
@bikramtuladhar Ай бұрын
I wonder which terminal he is using on video, it look good.
@MADhatter_AIM
@MADhatter_AIM Ай бұрын
pimped tmux
@zehph
@zehph Ай бұрын
He has a video on his terminal workflow and tools, iirc it is wezterm with a catpuccin variation and the same theme on tmux. Just look his name with with tmux config and you should find it.
@devopstoolbox
@devopstoolbox Ай бұрын
@@MADhatter_AIM true!
@devopstoolbox
@devopstoolbox Ай бұрын
@@bikramtuladhar Wezterm and tmux magic. Do note that while you can achieve the “glossy” transparent look, it’s part video editing tricks
@dagoberttrump9290
@dagoberttrump9290 29 күн бұрын
what nvim config are you using?
@devopstoolbox
@devopstoolbox 28 күн бұрын
@@dagoberttrump9290 it’s all here: dotfiles.omerxx.com And I made a video recently covering my setup from scratch
@Slonegful
@Slonegful Ай бұрын
Heya! Which font do you use?
@devopstoolbox
@devopstoolbox Ай бұрын
@@Slonegful Jetbrains Mono
@phb17
@phb17 29 күн бұрын
Or just use nix-env
@devopstoolbox
@devopstoolbox 28 күн бұрын
@@phb17 1:0 😅
@GothAlice
@GothAlice 12 күн бұрын
Huh… so like how I’ve been using Zsh with Python virtualenv for nearly 10 years… 😗
@BarakaAndrew
@BarakaAndrew 20 күн бұрын
Dont save secrets in dot envelopes, instead encrypt? And where is that encryption key getting stored? Must be somewhere in the app or another file adding complexity for nothing. Just store stuff in dot envelopes without fear, if someone has access to that file encrypted or not you are in big trouble already coz if they can access that they can definitely access the decryption key. Just dont push it online and give necessary file permission that’s it, if u push it online simply change the secrets and u r good to go.
@devopstoolbox
@devopstoolbox 19 күн бұрын
@@BarakaAndrew so it comes down to use case and process. Saying “just don’t push the key” is practical but GitHub is FILLED with leaked keys… I prefer secret stores within my CI system or a 3rd party. For small projects I’d either encrypt them or use the deployment platform to store them. Whatever I chose, I always try to avoid a situation where I have to remember to not push them or hide them in an ignore file. To me, this is calling for trouble
@CZiNTrPT
@CZiNTrPT 7 күн бұрын
So how does .env.keys solve this? You still need to add it to .gitignore, same as you would with .env?​@@devopstoolbox
@dinoscheidt
@dinoscheidt 16 күн бұрын
You guys need to discover containers 😑 never added env to my personal user space. Use an isolated environment
@CNSH-u9j
@CNSH-u9j Ай бұрын
Fella looks like a really tired Adam Thielen
@devopstoolbox
@devopstoolbox Ай бұрын
@@CNSH-u9j 😂 had to google that! Is this a good thing? I did shoot this at 4:30AM so definitely tired 😅
@CNSH-u9j
@CNSH-u9j 27 күн бұрын
@@devopstoolbox not good or bad just an observation! Get some sleep man!
@devopstoolbox
@devopstoolbox 26 күн бұрын
@@CNSH-u9j 😆
@Danielo515
@Danielo515 29 күн бұрын
I reached direnv after discarding devenv
@AqgvP07r-hq3vu
@AqgvP07r-hq3vu 29 күн бұрын
I didn't view the video yet but I assume it is about direnv. Let me see if I'm correct.
@devopstoolbox
@devopstoolbox 28 күн бұрын
@@AqgvP07r-hq3vu 👏
Five Terminal Applications I CAN'T Live Without
11:28
DevOps Toolbox
Рет қаралды 22 М.
NixOS: Everything Everywhere All At Once
15:10
No Boilerplate
Рет қаралды 309 М.
My daughter is creative when it comes to eating food #funny #comedy #cute #baby#smart girl
00:17
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 123 МЛН
Je peux le faire
00:13
Daniil le Russe
Рет қаралды 18 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 185 МЛН
I learned to code from scratch in 1 year. Here's how.
41:55
Thomas Frank
Рет қаралды 409 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 87 М.
Linus On LLMs For Coding
17:06
ThePrimeTime
Рет қаралды 255 М.
Tmux From Scratch To BEAST MODE
12:44
DevOps Toolbox
Рет қаралды 112 М.
My Entire Neovim Setup From Scratch After 8 Years
10:20
DevOps Toolbox
Рет қаралды 38 М.
The Secret Language Scaling WhatsApp and Discord
28:32
Theo - t3․gg
Рет қаралды 150 М.
The Weird Rise Of Anti-Startups
12:57
Enrico Tartarotti
Рет қаралды 263 М.
Setting up a production ready VPS is a lot easier than I thought.
29:50
This VIM trick BLEW MY MIND
6:37
typecraft
Рет қаралды 51 М.
This changes EVERYTHING about .env files
9:45
DevOps Toolbox
Рет қаралды 8 М.
My daughter is creative when it comes to eating food #funny #comedy #cute #baby#smart girl
00:17