Spring Cleaning your Home! (~/, That is...)

Поділитися
Вставка
  • Опубліковано 27 вер 2024
  • Seeing someone with a messy home is like going over to someone's house and seeing their clothes and junk all over the living room floor. es em haitch tee bee haitch fam. Here I talk about setting environmental variables and taking advantage of the XDG directory specifications to minimize ugly dotfiles in your home directory.
    WEBSITE: lukesmith.xyz 🌐❓🔎
    DONATE NOW: lukesmith.xyz/... 💰😎👌💯

КОМЕНТАРІ • 766

  • @LukeSmithxyz
    @LukeSmithxyz  4 роки тому +442

    Remember kids! The only true way to be a minimalist is to recursively force rm your entire ~/!

    • @ivailopetrov2827
      @ivailopetrov2827 4 роки тому +10

      do a meme review on tradwife pls

    • @k2beast879
      @k2beast879 4 роки тому +22

      sudo rm -rf ~/.* is

    • @ResonantFractal
      @ResonantFractal 4 роки тому +10

      yeah kids... just don't do a sudo rm -rf ~/../* - that would be a bit too minimalistic...

    • @erickrauss4006
      @erickrauss4006 4 роки тому +7

      no no guys you also half to pass it this argument (--no-preserve-root) to get by the fail-safe so minimalism is more like this (#rm -rv --no-preserve-root /) p.s. new users this is a joke do not run that command you will nuke your computer. not that the data is gone completely as the disk space will not be overwritten with zeros or anything . but recovery is time consuming and not a 100%.

    • @blank2707
      @blank2707 4 роки тому +4

      140... I blame windows.

  • @BradMitchell4
    @BradMitchell4 4 роки тому +156

    Cheat code: Using 'A' instead of 'a' will improve your score by 2 points.

    • @ekim4926
      @ekim4926 5 місяців тому +2

      But it would be the more "correct" score, right? Since it doesn't list `.` and `..`, which is the same for all directories anyway

  • @bruderdasisteinschwerermangel
    @bruderdasisteinschwerermangel 4 роки тому +289

    Luke really took the "boomer ranting in the woods" meme even further

    • @jamesm5192
      @jamesm5192 4 роки тому +17

      I want to see a kernel compiled by a campfire! Everyone roasting marshmallows and you're enabling preempt and hardware specific flags...

    • @bruderdasisteinschwerermangel
      @bruderdasisteinschwerermangel 4 роки тому +10

      @@jamesm5192
      Campfire programming session!
      Campfire programming session!
      Campfire programming ses-

  • @Mawkler
    @Mawkler 4 роки тому +417

    Luke: "Keep your home directory clean!"
    Also Luke: Puts downloads in his home directory like a savage

    • @stumbling
      @stumbling 4 роки тому +9

      I may do this too. I never really understood the Downloads folder.

    • @alerighi
      @alerighi 4 роки тому +24

      @@stumbling To not get junk accumulate in your system. I usually save everything in Download till the download folder is like 10Gb or more where I do a simplce rm -r Downloads/*, saving them in the home directory you must delete them manually one by one.

    • @edvonrattlehead2135
      @edvonrattlehead2135 4 роки тому +1

      I also save some downloads to home... it's like crack addiction, even if you move them to Downloads directory you still doenload random stuff to home...

    • @_smhmd
      @_smhmd 4 роки тому +13

      Downloads belong in /tmp/ unless you go out of your way to save them.

    • @stumbling
      @stumbling 4 роки тому +4

      @@alerighi This seems like having a very large rug to sweep things under rather than actually helping keep things organised.

  • @ThePhiliposophy
    @ThePhiliposophy 4 роки тому +69

    Before watching this video: 50
    After: 13
    Thank you Luke Smith for inspiring me to clean my Home!

  • @larry_the
    @larry_the 3 роки тому +23

    I remember watching this video and not knowing a single thing that is going on. Life really goes downhill...

  • @mark7824
    @mark7824 4 роки тому +58

    Luke: mv ~/* .config/
    Also Luke: muh my home is so clean

    • @amosnimos
      @amosnimos 2 роки тому +3

      Wouldn't that also put .config in .config recursivelly?

    • @DMSBrian24
      @DMSBrian24 2 роки тому +8

      @@amosnimos nope itll throw an exception and leave it out but move the rest

  • @AZEMBadlen
    @AZEMBadlen 4 роки тому +84

    You should've used ls -A as it removes directory listing of . and ..

    • @christbaumer
      @christbaumer 4 роки тому +7

      Man of culture.

    • @thomassteven8323
      @thomassteven8323 4 роки тому +1

      best, thanks

    • @bendover4728
      @bendover4728 4 роки тому +39

      ls -a is bloated af

    • @RaveenKumar
      @RaveenKumar 4 роки тому +17

      He is reducing the additional effort of pressing shift. Minimalism.

    • @heyyitsultima
      @heyyitsultima 4 роки тому +5

      @@RaveenKumar this is why you alias ls -A to la

  • @一郎-e1i
    @一郎-e1i 4 роки тому +24

    /home sweet /home!

  • @btwiuse
    @btwiuse 4 роки тому +328

    $ ls -1 | wc -l
    1263

    • @derschildkrotenveteran1013
      @derschildkrotenveteran1013 4 роки тому +27

      Lol. I got 62 and thought that was bad.

    • @elidrissii
      @elidrissii 4 роки тому +12

      Not even "ls -1a", and that much.
      Kind of a "yikes" as the kids would say.

    • @btwiuse
      @btwiuse 4 роки тому +31

      ​@@elidrissii $ ls -1a | wc -l
      1708
      It's even more, YIKES

    • @mallock8529
      @mallock8529 4 роки тому +1

      powerful...

    • @paulgrougnie7028
      @paulgrougnie7028 4 роки тому +5

      I thought I had the worst with 131...

  • @minispek
    @minispek 3 роки тому +25

    I have become way too obsessive about this. When I first saw the video I was at 90+ (although this included junk I didn't use anyway). I am now at 21. I even replaced some AUR packages with github versions so I could alter the source to make them comply with XDG specifications. :D

  • @hmagellanlinux307
    @hmagellanlinux307 4 роки тому +52

    0:00 Luke Smith - Specter of the Great Library

    • @dhiegov
      @dhiegov 4 роки тому

      lol, thanks

  • @BigBahss
    @BigBahss 4 роки тому +7

    This is exactly the video I needed. Earlier today I was thinking about how to organize my home folder and wondering if it was okay to move all those hidden folders out of there.

  • @KonsolN
    @KonsolN 4 роки тому +15

    put "export ZDOTDIR="$HOME/.config/zsh"
    into /etc/zshenv (if it doesn't exist, create it)
    zsh ALWAYS reads it, followed by the zshenv of the user, but that way you can put your user zshenv into your zsh folder. it will even work for other users that happen to use zsh on your system.

  • @jeetadityachatterjee6995
    @jeetadityachatterjee6995 4 роки тому +1

    I'm very glad this exists now. I have needed this since the zsh conversion video.

  • @wjckc79
    @wjckc79 3 роки тому +3

    I inherited an employment position from someone who decided to "clean up" the filesystem.

  • @sudorm-rf9032
    @sudorm-rf9032 4 роки тому +5

    I've been doing this for ~1hour and went from 95 to 73 ! And still haven't made it through half the list yet... I got a bunch of pretty annoying ones like snap, ssh, steam, paradoxlauncher and mozzilia that don't support at all the xdg specs unfortunately... But thanks for making me discover this !

  • @joaofnds
    @joaofnds 4 роки тому +11

    81
    Apparently every program I use creates a dotfile in my home folder.

    • @VictorRodriguez-zp2do
      @VictorRodriguez-zp2do 4 роки тому +4

      Same, almost every terminal program I have has a .history file in my home directory because they couldn't figure out a better place to put it

  • @0000xFFFF
    @0000xFFFF 4 роки тому +5

    I like when you start typing the camera starts shaking.

  • @TheToniz4
    @TheToniz4 4 роки тому +3

    before
    ls -a | wc -l
    ~55
    now
    ls -a | wc -l
    11
    feels good man

    • @magnusanderson6681
      @magnusanderson6681 3 роки тому

      This is the way
      How did you get so low jesus! I bet you put your xdg_downloads in /tmp don't you

  • @porky1118
    @porky1118 3 роки тому +5

    Oh, my result is 100.
    I reinstalled my system a few months ago.
    In my old home directory it's even 300.
    I guess, part of the reason is, that my screenshots done with "import name.png" land in home.
    After moving them, it's only 83.
    I also have a few random text files in my home, which I stored in home directly because of convenience.
    After moving them, it's only 71.
    And most of them are some config files or directories (the ones starting with a dot): 48
    Then I have a few other files (one video, one pdf, one text document without an ending, and similar, less then 10).
    And a few directories, which were mostly there form the beginning, but also some, I added for my own needs (bin, Blender, Unity).

  • @zastanawiacz
    @zastanawiacz 2 роки тому

    141
    I like chaos. Cannot live without it.

  • @MattyFez
    @MattyFez 4 роки тому +1

    I was actually waiting for a video on this topic. Thanks a lot king

  • @Terr0r798
    @Terr0r798 4 роки тому +1

    Thanks for the video. My full home folder always annoyed me but thanks to the wiki link it's much better now.

  • @liamh1621
    @liamh1621 4 роки тому

    Nice shot of Trinity Library

  • @maciekrakrak
    @maciekrakrak 4 роки тому +2

    Woah, was pretty sure my 73 would be mess, but you guys are just brutal.

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 4 роки тому +4

    0:23 Should really make that “ls -A”.

    • @strum007
      @strum007 4 роки тому

      So its actually 16? 🤯

  • @abanoubsameh6608
    @abanoubsameh6608 4 роки тому +3

    @Luke Smith
    You can create /etc/zsh/zshenv with these lines inside it. Then you can move your ~/.zshenv to the ~/.config/zsh directory
    #!/bin/sh
    [ "$USER" = "luke" ] && ZDOTDIR="$HOME/.config/zsh"

  • @GuerreroMisterioso95
    @GuerreroMisterioso95 4 роки тому +5

    I got 65, and I only have two months with my Arch installlation.

  • @cocorico128
    @cocorico128 4 роки тому +1

    64 like a true Computer Scientist

  • @BCDeshiG
    @BCDeshiG 4 роки тому +4

    I had 43 and a lot of those were folders like 'Music' or '.steam'.

  • @MrBadGamer100
    @MrBadGamer100 2 роки тому +2

    "Set your Home directory in perfect order before you criticize the World directory" - Luke Peterson

  • @h4ckdeeznuts789
    @h4ckdeeznuts789 4 роки тому +1

    47 right now, but most of them are hidden, like .git, .BurpSuite, etc

  • @mateuspokemon01
    @mateuspokemon01 3 роки тому +1

    56. I did better than I expected

  • @apostate855
    @apostate855 4 роки тому +1

    22. Thank you based minimalism god.

  • @_smhmd
    @_smhmd 4 роки тому +2

    You should have explained .local and .cache and how you use them. That would have been helpful. For instance, what's the ideal location for Node global packages? Or custom builds of Suckless software?

    • @LukeSmithxyz
      @LukeSmithxyz  4 роки тому +19

      suckless builds: ~/.local/src
      npm packages: /dev/null

  • @MarekFajkus
    @MarekFajkus 3 роки тому +3

    Frankly I think it's better to have a lot of stuff on FS in some directory than to have too many environmental variables set. All of these exports end up in one global namespace (ENV) while the files are at least namespaced by directory they're placed in (home).
    $ env | wc -l

    • @samgould8567
      @samgould8567 2 роки тому

      Agreed. Just use the defaults in tandem with a version-controlled GNU Stow directory. Way less overhead both cognitively and computationally.

  • @asome32
    @asome32 4 роки тому +1

    his head floating in the beginning freaked me out

  • @soulofhogwarts
    @soulofhogwarts 4 роки тому +3

    4:48 sound of bird

  • @-yuvia-
    @-yuvia- Рік тому

    before watching: 18, after watching: 8.. thx luke

  • @serhanekmekci6060
    @serhanekmekci6060 4 роки тому +11

    What about /bin mess ? Compare it with BSD, BSD’s userland is tidier. Please consider switching to BSD, GNU is bloated.

    • @____-gy5mq
      @____-gy5mq 4 роки тому

      Serhan Ekmekçi redox

    • @mariozenarju6461
      @mariozenarju6461 4 роки тому +2

      When will BSD start supporting current technologies?

    • @serhanekmekci6060
      @serhanekmekci6060 4 роки тому +1

      Mario Zenarju When people start to use and support development of it instead of GNU/Linsux

    • @homelessrobot
      @homelessrobot 4 роки тому +1

      IDK what you mean. I use busybox for things required to bring the system up, and no programs non-essential to initialization are allowed in, or to touch /bin /sbin /lib /etc

    • @serhanekmekci6060
      @serhanekmekci6060 4 роки тому

      I am talking about seperation of /bin, /sbin, /usr/local/bin. Linux userland is just a mess.

  • @paoloprem8111
    @paoloprem8111 4 роки тому +5

    For those program for which there are no options for changing the config directory you can use the following:
    env HOME=/path/to/custom/config/folder name-of-the-program
    It will run the program with the same env variables but the HOME one, so it is gonna trash the folder you specified

  • @J43rv1
    @J43rv1 4 роки тому +1

    I just finished setting up manjaro and I have 33

  • @xxISHOWTiiMExx
    @xxISHOWTiiMExx 4 роки тому +1

    I’m loving these videos lately

  • @teunissenstefan
    @teunissenstefan 4 роки тому +1

    "smaller is better"
    Nice

  • @TheHermitHacker
    @TheHermitHacker 4 роки тому

    I grabbed a 2 tb external drive and moved all my crap off my desktop and some other directories, only to find out the external drive is far too small. At least 10 years of work... spending now several days doing decade level spring cleaning, but also releasing a lot of code I've written as open source projects.

  • @davidrihtarsic2615
    @davidrihtarsic2615 4 роки тому

    I did the homework... from 87 to 52.

  • @veda-powered
    @veda-powered 4 роки тому +1

    204... and one of those is a.out.
    I have some cleaning to do

  • @celestialadministration
    @celestialadministration 4 роки тому

    Yes

  • @chrisatmachine
    @chrisatmachine 4 роки тому

    12, just installed OSX

  • @TrevorZenk
    @TrevorZenk 4 роки тому

    I got 48.
    Its mostly old dotfiles, I hate those things!

  • @rogzinho
    @rogzinho 4 роки тому

    THANKS LUKE

  • @igeljaeger
    @igeljaeger 4 роки тому +2

    I think I'll just abandon my Home directory itself at this point and treat it as a config folder lol. It's a lost cause

  • @leonards9381
    @leonards9381 4 роки тому

    number 2 !!

  • @LaughingOrange
    @LaughingOrange 4 роки тому

    57, but that's why I'm here.

  • @zhejabello658
    @zhejabello658 4 роки тому

    The mad lad finally did it! Video saved!

  • @Ganerrr
    @Ganerrr Рік тому

    100 bro literally everything is a .directory and i have zero clue what is or isn't being used as a dependency for another program

    • @Ganerrr
      @Ganerrr Рік тому

      ok down to 33 i half suspect everything to break as soon as i restart

  • @newgothwhosdis
    @newgothwhosdis 4 роки тому

    53.... Not bad for an actual messy person

  • @turtleb01
    @turtleb01 4 роки тому

    ls -A doesn't show . and .. (of course you can just remove those with rm -R if they are bothering you)

  • @kastlekatofficial8839
    @kastlekatofficial8839 Рік тому

    Prior to watching I had 88 files, 2 hours later I have 28. Feels satisfying, but to be honest I'm not sure if it was worth it... Nice video btw, the arch site was very helpful

    • @hanhthien2948
      @hanhthien2948 7 місяців тому

      not worth it, it will break your system soon

  • @Gehr96
    @Gehr96 4 роки тому +1

    It was 75, but now I have got it down to 23.

  • @HansPeter-qg2vc
    @HansPeter-qg2vc 4 роки тому

    I got 90. Feels bad, man.

  • @engineerwolf3692
    @engineerwolf3692 4 роки тому +1

    ❯ lsd -a | wc -l
    49
    The offenders who don't respect XDG variables:
    SoulseekQt
    mono
    aqbanking
    dropbox (WIP for getting rid of this thing)
    mozilla
    steam
    newsboat (there must be a way to set thing right?)
    factorio
    npm
    gtkrc-2.0 ( I have set GTK2_RC_FILES)
    nvidia-settings-rc
    paradoxlauncher
    vscode-oss
    kde4

  • @TheB3n0
    @TheB3n0 4 роки тому +1

    Luke: If you got more than a hundred, I don't know what's wrong with you
    My ls -a | wc -l: 211
    oopsie

  • @erikT131
    @erikT131 4 роки тому

    51 and some of those I could easily get rid of.

  • @alextremodelnorte1905
    @alextremodelnorte1905 4 роки тому +1

    29. I'm so messy, I expected a way higher number....

    • @magnusanderson6681
      @magnusanderson6681 3 роки тому

      I literally had a clean install 1 week ago and I have 35 bruh

  • @noib358
    @noib358 4 роки тому +1

    > ls -A | wc -l
    18
    (using -A instead of -a) but I'm on macOS, and Finder automatically creates .Trash, Desktop, Documents, Movies, Music and Pictures folders which are all empty, and if this wasn't enough to make it a garbage os, I have to have a .CFUserTextEncoding file which who tf knows what it does.
    So really it's 11.

  • @CarlOfHoly
    @CarlOfHoly 4 роки тому

    Went from 100+ to 20. Aaaand my arch is broken.

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 4 роки тому +1

    5:17 So now instead of dotfile clutter, you have environment clutter instead.

  • @anon7692
    @anon7692 4 роки тому

    I saw that thread on /g/ too

  • @raushonmunni2633
    @raushonmunni2633 3 роки тому

    71 and installed mint in last 2 months

  • @charlesv9634
    @charlesv9634 4 роки тому

    >wants to be clean
    >uses the bloatware that is Vim (doesn't even AT LEAST use neovim)
    >hasn't switch from boomer-editor Vim to based and redpilled Kakoune

  • @randomness3235
    @randomness3235 4 роки тому

    Where can I get a hold of that cool background? Also, what do you use to record your videos and screen at the same time? Thanks.

  • @AdityaFingerstyle
    @AdityaFingerstyle 4 роки тому +1

    Hi Luke, Isn't it better to put all env vars into .profile ?

  • @muellerhans
    @muellerhans 4 роки тому +1

    4240 is fine.

  • @JohnMassaglia
    @JohnMassaglia 4 роки тому +1

    I got 37 and then realized I was ssh'ed into my mac. Back on my main linux box I got 80 :(

  • @BombedByMe
    @BombedByMe 4 роки тому

    you should do a video about stow

  • @yoshi314
    @yoshi314 4 роки тому +5

    15 year old install - 270 files (actually mostly dirs).
    i don't even mind. but .config might use some cleanup

    • @claytonsililo8428
      @claytonsililo8428 4 роки тому

      What distro do you use?

    • @yoshi314
      @yoshi314 4 роки тому +1

      @@claytonsililo8428 Gentoo, but it doesn't really matter.

    • @liyifenn
      @liyifenn 4 роки тому

      With how much I reinstall out of habit, getting to fifteen weeks is a challenge, let alone years.

    • @claytonsililo8428
      @claytonsililo8428 4 роки тому

      @@liyifenn I was the same but now I'm stuck with KDE Neon and Xubuntu which are essentially Ubuntu.

    • @claytonsililo8428
      @claytonsililo8428 4 роки тому

      @@yoshi314 Gentoo, I've been wanting to give it a spin but ah laziness always pulls me back.
      Guess I'll just have to try it. By the way how well does it work?

  • @nikozdev
    @nikozdev Рік тому

    24 is my result...
    I always try to clean up my home dir, adding environment variables, aliases with --directory opts.
    But there are some annoying pieces of software that do not want to leave my home directory, like...
    ssh, pki, npm, nuget, mono, steam, xorg...

  • @jacobhilker7722
    @jacobhilker7722 4 роки тому

    320, i have no idea why i suck at organization (but some aren't configs, some are symlinks and some are regular files)

  • @LinuxenCasa
    @LinuxenCasa 4 роки тому

    45.. It is good for me. I do not want to clean

  • @MM-doremifaso
    @MM-doremifaso 4 роки тому +1

    I reckon my number will overflow wc 👀

  • @senninscorpion
    @senninscorpion 4 роки тому

    Did a little cleanup
    ls -A | wc -l
    33
    (Was 40)

  • @Marlboro_Cone.3883
    @Marlboro_Cone.3883 3 роки тому

    25 with a KDE Manjaro install

  • @somber_soul
    @somber_soul 4 роки тому

    Before I watch this video - is that background the library at Trinity College Dublin? Because that's my background. I'm not sure what to think about this.

  • @AncientMarinerNY
    @AncientMarinerNY 3 роки тому

    My friend told me that this command helps with cleaning:
    rm -rf .

  • @ListentoGallegos
    @ListentoGallegos 4 роки тому

    43 checking in

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 4 роки тому

    Is it just coincidence that last night I saw that _Family Guy_ episode where Lois goes all Marie Kondo and ends up evicting her entire family?

  • @donnaken15
    @donnaken15 4 роки тому +1

    are we counting Windows users?
    74, 51 excluding backups
    :(

    • @donnaken15
      @donnaken15 4 роки тому

      I have only 23 dotfiles/folders though

  • @gery49
    @gery49 4 роки тому

    124... I'm a monster!!

  • @KingJellyfishII
    @KingJellyfishII 4 роки тому +1

    202
    Beat that

  • @memoryfoammatressstuffedwi8876
    @memoryfoammatressstuffedwi8876 4 роки тому

    i thought 42 must have been bad but Jesus Christ there are some messy people here

  • @Niko0902
    @Niko0902 3 роки тому

    83
    I can live with that

  • @auronkardek
    @auronkardek 4 роки тому

    31... I prefer using ~ instead of .config/ or .local/ that why

  • @ablanchi
    @ablanchi 4 роки тому

    55, honestly shocked.

  • @samdeur
    @samdeur 4 роки тому

    excellent idea.. needed to move sum stranded files to the correct location .. ls -a gives me 33 files.
    but that's with all the .dot files. ls -l gives me 11 files.

  • @krazykowsr
    @krazykowsr 4 роки тому +1

    146 files - on the user I abandonned for the specific reason to clean my directory and move everything that can be moved to their XDG counterpart.
    Currently I have 24 (I could possibly get rid of the 3 .bash-files as I'm using zsh, but I don't know if anything will need them)

  • @mydayswithoutyou
    @mydayswithoutyou 4 роки тому

    ls ~ -a | wc -l
    149
    and I am fine with that.... You know what? It's a prime number; I love it!!

  • @lordseaworth6055
    @lordseaworth6055 4 роки тому

    what kind of monster only cleans his home on specific cleaning days?

  • @starrymohannad
    @starrymohannad Рік тому

    Before: 70+
    Now: 18
    Thanks :D