~/.dotfiles in 100 Seconds

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024
  • What are dotfiles? Take to take your developer productivity to the next level 🥋👊 by automating the setup of your computer. Go beyond 100 seconds with special guest Patrick McDonald to setup your own dotfiles repo from scratch dotfiles.eieio....
    What are dotfiles? wiki.archlinux...
    Example repo github.com/eie...
    Full Dotfiles Course dotfiles.eieio....
    #dev #learntocode#100SecondsOfCode
    Install the quiz app 🤓
    iOS itunes.apple.c...
    Android play.google.co...
    Upgrade to Fireship PRO at fireship.io/pro
    Use code lORhwXd2 for 25% off your first payment.
    My VS Code Theme
    - Atom One Dark
    - vscode-icons
    - Fira Code Font

Комментарии • 446

  • @Fireship
    @Fireship  3 года назад +181

    Make sure to check out Patrick's course, I learned at bunch of cool tricks from it bit.ly/3anaaFh

    • @SpaghettDev
      @SpaghettDev 3 года назад +1

      Sure! Hopefully I'll learn more cool tricks than you!

    • @Sekai966
      @Sekai966 2 года назад

      I will not ruin the 69 sorry

    • @heatengine6058
      @heatengine6058 Год назад +3

      this guy who is the tutorial instructor has very bad voice and it looks like it's not his own

  • @dvogel2010
    @dvogel2010 3 года назад +447

    The best thing about 100 second videos is taking the opportunity to listen to topics you might have ignored. This is a perfect example.

  • @valtersanches3124
    @valtersanches3124 Год назад +48

    I love how he talks to us like we're mentally challenged. Really needed that to understand some of this topics

    • @TheKer7
      @TheKer7 7 месяцев назад +7

      What do you mean 'like'?

    • @surfingbilly9654
      @surfingbilly9654 6 месяцев назад +2

      we are tho 😂💀🤣🤦👏🤓💯♿🔥🗿🤯🫡😖🧢

  • @stephen9849
    @stephen9849 3 года назад +596

    Not the video we think we wanted, but the video we need

  • @toxaq
    @toxaq 3 года назад +1189

    This is what Siri’s voice should sound like.

  • @user-wc1sm8cj8s
    @user-wc1sm8cj8s 3 года назад +65

    I haven't thought of having my own dot files repo before. Thanks for this realization and another lesson!

  • @alexhooper27
    @alexhooper27 3 года назад +350

    Is it just me or does 100 seconds get longer each episode?

    • @shashidhar71
      @shashidhar71 3 года назад +13

      Is to avoid RUclips demonetization of short videos.

    • @rudro314
      @rudro314 3 года назад +13

      is it just me or is this video getting kinda thicccccccc

    • @SirusStarTV
      @SirusStarTV 3 года назад +7

      @@shashidhar71 oh, that's where generosity comes from

    • @giuseppelanna
      @giuseppelanna 2 года назад +2

      1000 seconds now

    • @enossoares6907
      @enossoares6907 2 года назад +2

      Good

  • @1u8taheb6
    @1u8taheb6 3 года назад +47

    Love how you're combining the short videos with the long. Best of both worlds.

  • @jackkendall6420
    @jackkendall6420 3 года назад +93

    A quick intro to Vim would be a good fit for a 100 seconds video -- what do you think?

    • @NovaAquarius
      @NovaAquarius 3 года назад +12

      I think we would need beyond 100 seconds version for vim

    • @MarvinJWendt
      @MarvinJWendt 3 года назад +10

      It's likely gonna be 99 seconds of how to exit vim ^^

    • @TurboBorsuk
      @TurboBorsuk 3 года назад +1

      I totally feel you

  • @phiwatec2576
    @phiwatec2576 3 года назад +51

    Be careful NOT to upload the .ssh dir to a public repo. This directory contains the ssh config file and private keys for logging into remote machines (Webservers etc.). If they would be public anyone could log into those machines and possibly get root access.

    • @spell105
      @spell105 Год назад +8

      You should not upload such information period.

    • @robonator2945
      @robonator2945 7 месяцев назад

      ​@@spell105 incorrect, failing to have these files backed up to an external source is, well, let's not beat around the bush it's bloody stupid. You *_should_* upload them to other places, but only to places you directly control and can ensure are secure. Frankly I wouldn't upload or backup *_anything_* I care about to an external service I don't manage. Some people mitigate this by only uploading encrypted copies, meaning the external service provider never gets an unencrypted version of any of your data, and that can be good for an offsite backup, but personally even that feels like flying a bit close to the sun if you ask me.
      Another thing you should do if you care about security is put passwords on your SSH keys, so even if the keys get leaked they're still not usable. Alternatively you can buy a hardware security key and store keys on that instead, with the keyfiles only referencing the true resident keys stored on the hardware-key. Unfortunately as far as I understand it FIDO2 is not quantum safe so there is an arguable hit to your security if you go that route. To be clear, chances are you will never have someone attacking you via quantum cracking, but it *_is_* a weakness and there is already strong evidence that governments are following a "store now, decrypt later" approach. If quantum computers continue to improve at the same rate classical computers did, that *_does_* mean that, eventually, your data may be forcefully decrypted. Personally though I'd argue the benefit of using a FIDO2 resident key is that you can setup your SSH config to first require a resident key *_then_* require a password. This should mitigate the weakpoints of both while keeping the security layered so that if one is compromised the other should remain secure. Granted though, I'm not all that savvy when it comes to the nit and grit of cryptography so take that advice as exactly what it is; the ramblings of a jackass in a youtube comment section's replies.

  • @Raekh_
    @Raekh_ Год назад +5

    You can use stow to do this very efficiently. You can even make a script running stow on every folder/file in your ~/.dotfiles folder and it will do the work for you.

  • @BG-fo4si
    @BG-fo4si 3 года назад +4

    This godlike voice of Patrick made me feel so safe...

  • @MrDadidou
    @MrDadidou 3 года назад +6

    12:36 a good tool to symlink everything is Stow
    with dootfiles in ~/my_git_repos/dootfiles :
    1. cd ~/my_git_repos
    2. stow -v -R -t ~ dootfiles_folder

  • @shubhranildutta9564
    @shubhranildutta9564 3 года назад +37

    Dropping a like before I watch this video, 'cause I already know it's going to be good!

  • @fathnakbar
    @fathnakbar 3 года назад +59

    He sounds like nineties ads voice over

  • @dandoe2461
    @dandoe2461 3 года назад +139

    didn't realise soydevs knew what dotfiles where!!!!!

    • @TheOPtmal
      @TheOPtmal 3 года назад +15

      I like Jeff's content but I agree, he's a soydev.

    • @jackkendall6420
      @jackkendall6420 3 года назад +5

      Mom, I'm sorry, but you don't understand, he put my argument under an image of a soyjak, I have to kill myself

    • @adamjones7497
      @adamjones7497 3 года назад +2

      *were, Zing Fail.

    • @Fireship
      @Fireship  3 года назад +80

      just wait until you see my vim skills

    • @jeetadityachatterjee6995
      @jeetadityachatterjee6995 3 года назад +26

      @@Fireship vim in 100 seconds when?

  • @11MyName111
    @11MyName111 3 года назад +2

    I was watching videos about git bare repos and storing dotfiles 2 days ago and here you are!
    Great timing!
    The bare repo way looks more elegant to me (no ln links).
    I'll try them both now

    • @WojciechFrancuzik
      @WojciechFrancuzik 3 года назад

      Exactly what I was wondering the whole video. Bare repos are really objectively better. You don't move files to other folders just commit them whey they live naturally.

    • @BakrAli10
      @BakrAli10 Год назад

      ​@@WojciechFrancuzikwhat are bare repos? Can you recommend me a good one to try?

  • @ByteBound_
    @ByteBound_ Год назад +87

    bruh this aint 100 seconds

    • @blackstone12
      @blackstone12 2 месяца назад +1

      Wait, Fireship's 100 seconds videos aren't 100 seconds?
      🔫 Never we're.

    • @herkatron
      @herkatron Месяц назад

      Bro, you realize you’re supposed play this video in 8.33x speed and it’s 100 seconds, right? Are you dumb 😂

    • @Boltkiller96
      @Boltkiller96 Месяц назад +2

      ​@@blackstone12 "never we are"

  • @TheDeathMongrel
    @TheDeathMongrel 3 года назад +1

    Using git and dotfiles in this way is something that never occurred to me. Thanks for the enlightenment!

  • @richardbennett4365
    @richardbennett4365 Год назад +4

    Two points I'd make:
    First, it's a fantastic video and tutorial.
    Setting a git repository for one's dot files and dot directories will be so helpful for
    1) the personalization of a rofi configuration. I spent over 2 hours getting rofi to work on a new machine as I had configured it on the first, and
    2) it could be helpful for creating all the suggested subvolumes in btrfs, and
    3) it could help with moving and symbolically linking Desktop, Documents, Pictures, Movies, Downloads, Templates, etc.from /home/user56 to /data/Users/user56/" on that separate partition as is suggested by tge folks who brilliantly work on siduction. See siduction manual about moving home.

  • @YoungGrizzly
    @YoungGrizzly 2 года назад +2

    Ive done this in other ways but just never connected the dots to do this with system file. Simple and usual. Thanks!

  • @TheTn1010
    @TheTn1010 3 года назад +2

    Patrick sounds like professional voice over guy!

  • @richienguyen2703
    @richienguyen2703 3 года назад +1

    this beyond 100 seconds video is beyond my expectation!

  • @g-luu
    @g-luu 3 года назад +4

    This was surprisingly valuable. Thank you Jeff and company.

  • @givingittoyouraw4101
    @givingittoyouraw4101 Год назад +1

    Thank you Fireship and Patrick for this fantastic tutorial! Made everything so easy.

  • @MrZerosixZeroone
    @MrZerosixZeroone 3 года назад +1

    This is the ultimate procrastination task

  • @neillunavat
    @neillunavat 3 года назад +3

    Damn, how do you create those stunning animations? 😍

  • @AutisticThinker
    @AutisticThinker 3 года назад +3

    9:37 - Exiting Vim, LOL... So true. :)

  • @thefreeze6023
    @thefreeze6023 3 года назад +1

    Came for dotfiles
    Stayed for Patrick's voice

  • @liondeluxe3834
    @liondeluxe3834 3 года назад +1

    This collab was fire

  • @akshatsingh7286
    @akshatsingh7286 3 года назад +2

    Love your content!! Please make a whole series on web dev. Love from INDIA!!

  • @SouProds
    @SouProds 2 года назад +1

    Thanks for the help on setting dotfiles up! This really helped me.

  • @developerpranav
    @developerpranav 3 года назад +2

    I'm gonna use symlinks too now! Thanks a lot both of you 😃

    • @eieioxyz
      @eieioxyz 3 года назад

      Symlinks are cool, but there are solutions to help you automate that part. I use Dotbot in the course.

  • @redgeoblaze3752
    @redgeoblaze3752 2 года назад +1

    One of these days I'll be bothered to make an install script for when I reinstall my OS.
    I'm pretty sure that that day will be the last time I need to install my OS for the next ten years though.

  • @justafreak15able
    @justafreak15able 3 года назад +1

    OMG THAT VOICE!!!!!!!!

  • @byakka
    @byakka 3 года назад +1

    Oh my, thanks for the ⌘⇧.
    I had no idea that shortcut exists. It's not even in the menu!

  • @wellswatti
    @wellswatti 3 года назад

    So many things I enjoyed about this video. Ty!!

  • @heymakelemonades
    @heymakelemonades Год назад

    I HAVE to ask if the guest has a Channel ?!
    i would enjoy following him too
    and i believe that it is not just me

  • @ПанЧиЛо
    @ПанЧиЛо 3 года назад +2

    Another option would be to use GNU Stow to manage your dotfiles.

  • @alecjordan6100
    @alecjordan6100 3 года назад

    I’m late but, A Boyz n’ the hood reference and on the first day of black history month? Well done, my friend. 👌🏾

  • @kluplau
    @kluplau Год назад

    Patrick needs to make videos on RUclips himself too 💪💪

  • @tythedev9582
    @tythedev9582 3 года назад

    I like using GNU Stow to manage symlinks from the dotfile repo.

  • @AryanLokar
    @AryanLokar 3 года назад

    The Only One Chanelle for developers

  • @nodidog
    @nodidog 3 года назад +1

    Udemy course purchased 👍

  • @markilabot14
    @markilabot14 3 года назад

    Not actually 100 Seconds but it still worth anyone's time.

  • @itssidhere
    @itssidhere 3 года назад

    Legend says this is going to be the next voice of Jarvis

  • @mo99
    @mo99 3 года назад +1

    And here was me thinking of making separate gists for each config file...

  • @neerajnabar
    @neerajnabar 3 года назад

    What is that music playing starting at 13:16? I've heard it in some of your other videos too, and it's amazing!!

  • @user-vg7zv5us5r
    @user-vg7zv5us5r 2 года назад

    10:08 "Exit Vim in half an hour" is a Western "How does one patch KDE2 under FreeBSD?" )

  • @vivekteega
    @vivekteega Год назад

    This is awesome, thank you

  • @ngochunglongnguyen4523
    @ngochunglongnguyen4523 2 года назад

    Thanks, this video is super useful!

  • @robbiekavanagh2802
    @robbiekavanagh2802 3 года назад

    Nice compromise with the 100 seconds series

  • @vonUNS
    @vonUNS 3 года назад

    well now we need a video for overlayfs

  • @weeb3277
    @weeb3277 3 года назад +4

    @0:40
    I think it's time for projects to have .dot/ directory where all dot files could be put.
    Otherwise project root dirs are too unwieldy.

  • @bhumit070
    @bhumit070 3 года назад +1

    Please make a similar video for windows and chocolaty

    • @BakrAli10
      @BakrAli10 Год назад

      Did you find anything for windows?

    • @bhumit070
      @bhumit070 Год назад

      @@BakrAli10 No I Don't use windows it this comment was for those pathetic people who still uses exes to install programmes.

  • @NovaAquarius
    @NovaAquarius 3 года назад +1

    I don't know what am I doing here. My main dev environment is in windows 😐

  • @devhypercoder6772
    @devhypercoder6772 3 года назад

    If u ever plan on making a vim in 100 consider covering neovim

  • @zidaanhayat4286
    @zidaanhayat4286 3 года назад

    A sure surprise, but a welcome one

  • @3ayse
    @3ayse 3 года назад

    Patrick's voice!!!

  • @genuinebasilnt
    @genuinebasilnt 3 года назад

    My workflow:
    90% configuring bspwm
    10% actual coding

  • @sharishth
    @sharishth 3 года назад

    Waiting for django video in 100 seconds

  • @jzthegreat
    @jzthegreat 3 года назад

    Excellent stuff

  • @petergiammanco7092
    @petergiammanco7092 3 года назад

    I know you mentioned you were struggling with the 100 second videos and viewership because of how short they are... maybe change them to 100 seconds and beyond? Catering to those that want the quick and concise summary and you can give more content to gain more viewership on the videos? Just a thought

  • @dachd
    @dachd 3 года назад

    Dofiles is the start, next evolution step is creating your own set of system packages for settings that cannot be done via settings at your $HOME.

  • @truthhorizon5851
    @truthhorizon5851 3 года назад

    Great video,Thanks

  • @azr_sd
    @azr_sd 3 года назад

    I would still prefer setup everything from scratch. It just makes me happy and excited!

  • @mokiros
    @mokiros 3 года назад +1

    What music do you use in your "X in 100 seconds" videos?

    • @oskrm
      @oskrm 3 года назад +1

      Darude - Sandstorm

  • @jimhalpert9803
    @jimhalpert9803 3 года назад

    Amazing video!

  • @eighteighter164
    @eighteighter164 2 года назад

    Every linux ricer in the area: dotfiles?

  • @RyanTipps
    @RyanTipps 2 года назад

    Just to confirm - is the point of the new /.dotfiles directory to avoid accidentally adding the whole /User directory to the git repo? I suppose if you have a lot of dotfiles then you'd want to be able to stage all changes quickly with "git add ." so you'd need the /.dotfiles directory. Are there other reasons too?

  • @Paulmatthewbrowne
    @Paulmatthewbrowne 3 года назад

    Why not just use the home directory as the repo and gitignore everything that isn't a .dotfile at the root?

  • @divad1196
    @divad1196 3 года назад

    Why use symlink instead of hard link?

  • @izzzzzzza
    @izzzzzzza 3 года назад

    Please make Ubuntu dotfiles video

  • @LeafpoolTheMedCat
    @LeafpoolTheMedCat 3 года назад

    ....why doesn't Windows use dotfiles and uses some registry stuff instead (which you can't even backup)

  • @ricseeds4835
    @ricseeds4835 Год назад

    What a voice

  • @xrr-1
    @xrr-1 3 года назад +1

    I might be one of those who prefer setting up everything from scratch on a new MacBook or a PC.

  • @okie9025
    @okie9025 3 года назад +20

    TIL substandard boomer programmers call 10x devs "soydevs"

    • @danielegvi
      @danielegvi 3 года назад

      You are either a boomer programmer or a soydev, there is no in between.

    • @jiwujang3508
      @jiwujang3508 3 года назад

      @@danielegvi I use MBP & VSCode with all those fancy stuff like Deno, Next.js, etc., but also love coding in c/c++ with NeoVim Fully Customized™ stuff. Where should I be in?

  • @iedi3
    @iedi3 Год назад

    Why not make the home folder a repo, and gitignore all the content except the files you explicitly want to track? I find this overcomplicating something simple

  • @BGLZ8K
    @BGLZ8K 3 года назад

    Awesome!

  • @stolensentience
    @stolensentience 3 года назад

    I don’t use macOS, is the zshrc at all relevant to me?

  • @Anshulfml
    @Anshulfml Месяц назад

    The second Patrick started talkinig
    I came...

  • @johnduffy2777
    @johnduffy2777 2 года назад

    Does macOS not use .config/

  • @zuowang5185
    @zuowang5185 Год назад

    4:53 if you move the config files, would they still work?

    • @zuowang5185
      @zuowang5185 Год назад

      ok, he then talks about simlink

  • @zednotdead
    @zednotdead 3 года назад

    Patrick sounds like a younger clone of Gabe Newell.

  • @kristopherrobin4001
    @kristopherrobin4001 3 года назад

    Nice

  • @kettenbach
    @kettenbach 3 года назад

    What language did you use when building Patrick? #PatrickIn100Seconds

  • @SpaYco
    @SpaYco 3 года назад +293

    "To *git* started", i heard that

    • @surfingbilly9654
      @surfingbilly9654 6 месяцев назад

      😂💀🤣🤦👏🤓💯♿🔥🗿🤯🫡😖🧢

  • @its_vincesanity
    @its_vincesanity 3 года назад +344

    Imagine Patrick saying "In a World..."

    • @stephenhilson119
      @stephenhilson119 3 года назад +37

      No kidding his voice is like those old school no BS narrators.

    • @Fireship
      @Fireship  3 года назад +114

      ruclips.net/video/IBgH2Q7x_Bk/видео.html

    • @athreyamurali1439
      @athreyamurali1439 3 года назад +5

      Nicely done

    • @SpaghettDev
      @SpaghettDev 3 года назад +1

      hm

    • @yt-sh
      @yt-sh 3 года назад +4

      @@Fireship
      Hello,
      I am learning Devops and I see you were taking recommendations.
      Can you make these in 100 sec or more:
      Ansible
      Jenkins
      Puppet
      Chef
      & other devops tools.
      Thanks

  • @Lensbreak
    @Lensbreak 2 года назад +98

    .ssh folder MUST NOT be on github for safety reasons!

    • @olirules1074
      @olirules1074 2 года назад +2

      Yeah only the config stuff should be there

    • @D0Samp
      @D0Samp 2 года назад +2

      @@olirules1074 Even that is questionable. For example, the whole point of a hashed known_hosts file (which itself should probably not included in a public repository) becomes moot when your config file contains all those host names in the open.

    • @Nodsaibot
      @Nodsaibot 2 года назад

      also need the .passwd file in there

  • @TheJobCompany
    @TheJobCompany 3 года назад +205

    Ending every line of bash with a semicolon is the most soydev thing I've ever seen, I'm proud of you, Jeff!

    • @Fireship
      @Fireship  3 года назад +32

      Haha, it's his fault 👉 github.com/mathiasbynens/dotfiles

  • @mohammadimran2219
    @mohammadimran2219 3 года назад +27

    1:53 I though it was some kind of intro for Patrick

  • @iamzubin
    @iamzubin 3 года назад +39

    wait, why do I feel like it's more than 100 seconds?

    • @nerdiloo9863
      @nerdiloo9863 3 года назад +1

      You're listening at high speed so everything seems like slow motion, that's why.

    • @sodiboo
      @sodiboo 3 года назад +2

      cause this one also goes beyond 100 seconds after explaining it in 100 seconds

    • @farhanaditya2647
      @farhanaditya2647 2 года назад

      because it is

  • @fikrad0
    @fikrad0 3 года назад +10

    But their is security risk if someone but hands on like some sensitive file like .ssh

    • @haomingxia2109
      @haomingxia2109 3 года назад +5

      You can just leave .ssh out of the git repo

  • @CodingNuggets
    @CodingNuggets 3 года назад +11

    Dotfiles in 100 seconds. Hmm. More like dotfiles in 524 git commits and 3 years. I wish I could create my dotfiles in 100 seconds. Thanks for this content. Will be super helpful to people who don't know about them. See you soon!

    • @eieioxyz
      @eieioxyz 3 года назад

      Indeed. The course is already 4+ hours and I have a ways to go.

    • @RonnieNissan
      @RonnieNissan 3 года назад

      With RCM, you can create them in a minute

  • @Pptruenoz
    @Pptruenoz 3 года назад +16

    Symlinks are hard to mantain, making a Git bare repository It's a better approach!!

    • @TheOPtmal
      @TheOPtmal 3 года назад +2

      You can use GNU stow with a wildcard. You can check out how I do that in my install.sh for my dotfiles gitlab.com/TheOPtimal/dotfiles

    • @Pptruenoz
      @Pptruenoz 3 года назад +1

      @@TheOPtmal It looks pretty good, but still, making a git bare repository is way more simple and clean, check it out!

  • @shoukomi-sama
    @shoukomi-sama 3 года назад +4

    Environment variables next please

  • @sco1369
    @sco1369 3 года назад +6

    Patricks voice though 🤤

  • @Davsan1
    @Davsan1 3 года назад +2

    Loved the first part, but TBH am not a big fan of the OS-specific part

  • @tejas8417
    @tejas8417 3 года назад +5

    Awesome video as always sir! Would love to see more of these 💖💖💖
    Lots of love

  • @katech6020
    @katech6020 3 года назад +5

    For managing dotfiles, I use yadm package on Linux, which is way easier

    • @leonamer4054
      @leonamer4054 3 года назад +2

      I tried yadm, but I like GNU stow better for the way I manage my repo and the minimalist approach

    • @katech6020
      @katech6020 3 года назад

      @@leonamer4054 I will have a look at it