Manage Your Dotfiles Like A Superhero

Ғылым және технология

In this fourth episode of the "Build A Portable Development Environment" series we call all of our relevant dotfiles into a common ".dotfiles" folder. By doing so, we are able to version control our configuration using Git! To accomplish this we will use a command line tool called GNU Stow.
If this video helped you, or you have any questions / concerns, let me know in the comment section below! ⚡️
📌 Other videos in the series
Build A Portable Development Environment With Nix Package Manager
• Build A Portable Devel...
Setting Up Zsh And Antibody
• Setting Up Zsh And Ant...
Neovim - Your First 15 Minutes
• Neovim - Your First 15...
⏰ Timestamps
0:00 Intro
2:49 Create a .dotfiles directory
3:37 How Stow works
8:29 Add configuration files to .dotfiles directory
19:56 Update install script
22:36 Version .dotfiles directory with Git
24:47 Conclusion
📝 Show Notes
Notion Template
jakewiesler.notion.site/Build...
GNU Stow
www.gnu.org/software/stow/
Manage Your Dotfiles Like A Superhero (Blog Post)
www.jakewiesler.com/blog/mana...
My Dotfiles
github.com/jakewies/.dotfiles
👋 About Me
Hey there! I'm Jake. I make KZread videos about all the cool things I learn in my pursuit to be a better software developer.
🐦 Connect with me on Twitter
/ jakewies
💌 Subscribe to my Newsletter
jakewiesler.com/newsletter

Пікірлер: 30

  • @poodapoorc
    @poodapoorc5 ай бұрын

    I just stumbled upon your blog post on stow. It was super clear to read through and you've saved me a lot of time and researching to figure out a better way to set up my environment. I had a dotfiles repo and was not looking forward to copying or symlinking everything in there. Thanks so much for spreading the word on this awesome tool and providing instructions to get going quickly!

  • @jakewies
    @jakewies2 жыл бұрын

    New drinking game! Drink everytime I say "directory" 😅

  • @jameswinston5369
    @jameswinston5369 Жыл бұрын

    This was all sorts of awesome. Total game-changer. Thank you!

  • @bertmeijeringh9559
    @bertmeijeringh95595 ай бұрын

    Thanks Jake. Awesome contribution. I'll stow my .dot-files right away. Keep up the good work!

  • @marcossantos1998
    @marcossantos19982 жыл бұрын

    thank you so much for doing this step by step, very helpful to beginners

  • @DanielTubul
    @DanielTubul Жыл бұрын

    Great explanations - so good I had to use the comment feature which i normally chose not to.

  • @smilin_dominator
    @smilin_dominator2 жыл бұрын

    Thanks a lot for the amazing tutorial!

  • @duncan-mcrae
    @duncan-mcrae2 жыл бұрын

    Thanks. Best video for stow

  • @JalukOne
    @JalukOne2 жыл бұрын

    Thanks ! great job

  • @tillw9730
    @tillw9730 Жыл бұрын

    Instead of creating the nested .config structure, I simply used stow nvim --target=

  • @arashitempesta

    @arashitempesta

    4 ай бұрын

    thanks for the tip!

  • @RodrigoStuchi
    @RodrigoStuchi2 жыл бұрын

    Very cool content, I'll give a shot to stow. Tks

  • @jakewies

    @jakewies

    2 жыл бұрын

    Awesome!

  • @chillydoog
    @chillydoog2 жыл бұрын

    bless you

  • @sachak7001
    @sachak70012 жыл бұрын

    Hey, just followed your guide. Thanks, just set it up for me. How did you move lines up and down in Neovim?

  • @jakewies

    @jakewies

    2 жыл бұрын

    Hey Sacha. I usually just cut a line with "D" and paste it where i want with "o" and "p". The former pastes a line above, the latter pastes a line below. There's probably more efficient ways but i haven't found myself looking for them yet.

  • @soymichelo75
    @soymichelo752 жыл бұрын

    awesome series jake :D just one question: if you intend to also take with you your p10k prompt configuration, should you also take any dotfile? or where does that config "live"? (I checked your GH and didn't see anything. I am a bit maniac about the prompt O:-)

  • @vikingthedude

    @vikingthedude

    10 ай бұрын

    I use p10k and the dotfile i use is at ~/.p10k.zsh I haven't watched the whole video though so I'm not sure if this was answered already

  • @christophernicholas778
    @christophernicholas7787 сағат бұрын

    Is there an easy way to know which files are automatically generated and therefore should be ignored?

  • @joelpittet5957
    @joelpittet59572 жыл бұрын

    Great video, seems lots of videos and blogs of using stow 'packages' but in a bit of testing you can make your dotfiles repo the 'package' and do `stow .`. Any down side to that approach? I found it saved me from needing to reorganize my existing dotfiles in folders and only one stow command call though maybe I'm missing something from the need for that organization.

  • @vanadium4167

    @vanadium4167

    Жыл бұрын

    That organization in different packages may indeed be less essential. You also could manage all of your dot files in a single package. In other use cases, it may be essential, e.g. when used for "stowing" files from manually compiled and installed programs, which may come with many files. Unstowing and deleting the package directory then uninstalls the application at once.

  • @Slate245Ivanovo
    @Slate245Ivanovo2 жыл бұрын

    Just a thought: if you intent to clone .dotfiles folder into a new machine and then run install.sh, why do you install git as a part of a setup? It seems to me that you rely on it in the first place)

  • @jakewies

    @jakewies

    2 жыл бұрын

    Great question. Someone asked this on another video in the series. Here was my response: "This is a great point that I failed to identify myself. It looks like git is pre-installed on both Linux and MacOS machines, however I'm not sure what version it will be. I can certainly run a test. So on one hand, yes, it's a little redundant to install git again. But on the other, installing with nix means git will be placed in a deterministic location on your machine similar to other packages, and updating should be easy through nix as well. But I really do want to test this out and see how it works in theory. I have a thought that maybe the nix version is never being used! lol Thanks for the heads up!"

  • @soymichelo75

    @soymichelo75

    2 жыл бұрын

    hello Ivan, technically speaking, you can also download the files as such and unzip them (rudimentary, but would work)

  • @coderzio
    @coderzio8 ай бұрын

    Jee-en-you 😂

  • @amit12000
    @amit120002 жыл бұрын

    why dont we not use bare repository and alias method which simple can u provide reason and advantage over bare repository and alias method

  • @jakewies

    @jakewies

    2 жыл бұрын

    Bare repositories work fine. This way makes sense for me.

  • @pranavrk2622
    @pranavrk26222 жыл бұрын

    I played the game. Now I'm too drunk to remember who I am.

  • @jakewies

    @jakewies

    2 жыл бұрын

    I hate when that happens

  • @1____-____1
    @1____-____12 ай бұрын

    Ga Nu, or Ga New. Dont keep saying G.N.U. It's a recursive acronym for GNU is Not Unix...

Келесі