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

Поділитися
Вставка
  • Опубліковано 23 бер 2020
  • 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/donate 💰😎👌💯
  • Наука та технологія

КОМЕНТАРІ • 759

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

    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.

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

    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-

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

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

    • @ekim4926
      @ekim4926 Місяць тому +1

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

  • @ThePhiliposophy
    @ThePhiliposophy 3 роки тому +63

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

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

    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.

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

    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 роки тому +6

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

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

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

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

    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 роки тому +38

      ls -a is bloated af

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

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

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

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

  • @user-wc3zi7lh4g
    @user-wc3zi7lh4g 4 роки тому +20

    /home sweet /home!

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

    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

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

    3:12 “…if you go to th-actually, let’s get my face, so you don’t forget what I look like…” lol

  • @zigginzag584
    @zigginzag584 4 роки тому +62

    rm -rf ~/*
    instacleaned my home directory
    say no to bloat

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

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

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

    $ 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...

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

    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.

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

    0:00 Luke Smith - Specter of the Great Library

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

      lol, thanks

  • @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.

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

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

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

    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 !

  • @Shorthouse061
    @Shorthouse061 4 роки тому +8

    The virgin careful home directory cleaning vs the chad leaving home to bloatmaxx and just making a separate files partition.

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

    That's the video I needed for a cleanup day 👍

  • @dn232
    @dn232 4 роки тому +35

    "I disavow video games"
    N64 emulator and physical N64 in spare room
    Enough pretending gives us what we all want: the rest of that Deus Ex playthrough.

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

      wait there was a dx playthrough? was it a stream?

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

      @@babitz0r yeah it was a stream

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

      @@dn232 No way. I wish he archived those streams or something.

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

    Clean your ~/ Bucko. One of 12 Rules for GNU/life by professor Luke B(oomer) Perterson.

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

    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.

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

    I love the thumbnail.

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

    I’m loving these videos lately

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

    THANKS LUKE

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

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

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

    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

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

    5:01 That “du” command looks like an expensive way to find subdirectories.

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

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

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

    Nice shot of Trinity Library

  • @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).

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

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

  • @NicholasMaietta
    @NicholasMaietta 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.

  • @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.

  • @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

  • @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.

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

    141
    I like chaos. Cannot live without it.

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

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

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

    The mad lad finally did it! Video saved!

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

    I like when you start typing the camera starts shaking.

  • @_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

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

    Hey Luke - since you have a README.md file on your /voidrice repository, where exactly did you store that one?
    If I store it somewhere else than in my home dir, than it won't be in the home/main directory of my github repo :(

  • @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)

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

    38 - inluding all xdg generated directories, and .mpd, .ncmpcpp and all .tmux configs :D
    Good to know I can place all that to .config/, this video was quite usefull, thanks! :)

  • @HungNguyen-lz5xb
    @HungNguyen-lz5xb 4 роки тому

    136, not counting the `.` and `..`. I don't know what was going on too. The env tips is awesome, thank you.

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

    I just finished setting up manjaro and I have 33

  • @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...

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

    So, where do you keep your downloads, pictures, documents, etc directories? I'm using LARBS since the very beginning... You've created this forever newbie user!

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

    I noticed a password store environment variable. Is there a program you use to autocomplete passwords?

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

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

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

    Noob to Arch (and Linux) here so this is probably a stupid question - where do you install programs to if not in your home directory? For example I just installed dwm and st but they're currently in my home directory

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

    I got 41! I'm gonna clean it up now.

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

    Nice video!

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

    It's worth editing the Arch Wiki if it's not up to date, quite simple to do.

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

    How'd you change the Arch Wiki font? I have the same dark theme, but the original font...

  • @abanoubsameh6608
    @abanoubsameh6608 3 роки тому +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"

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

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

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

    12, just installed OSX

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

    22. Thank you based minimalism god.

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

    Mine is 65 im proud that im on the lower side

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

    his head floating in the beginning freaked me out

  • @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 4 місяці тому

      not worth it, it will break your system soon

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

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

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

      So its actually 16? 🤯

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

    I am at 90. I tried but at some point I gave up because there are too many programs I need that are too ignorant for this standard

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

    Dr. Skywalker,
    What ancient veda wisdom to you use to keep your config files in your home directory and simultaneously managed in a GitHub repository known as "voidrice".
    Idk how you ls your home directory and a "README.md" and "LICENSE" file do not appear.

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

    Is this a code to how many months you will go absent?

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

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

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

    number 2 !!

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

    Thanks to an OS bug 2 distros ago all of my .bash-history-xxxx.tmp were not deleted so I had 2600 empty files in my home. I have fixed this and am now at only 45, and I will be doing even more cleaning

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

    Where did you get that Stylus theme for ArchWiki from?

  • @Daniel-cc5ph
    @Daniel-cc5ph 4 роки тому

    Hey, Luke! Great Idea!!! I am over a hundred...
    If it says "hardcoded" in arch Wiki (e.g. audacity), that means, i have to leave it, correct?
    Best Regards from Germany,
    Daniel

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

    how do you have a line in you're st build? (i use you're's btw)

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

    yeah i need to clean the home folder on my server. i have so many random things that i had copied into the home folder over scp and then copied somewhere else on the server and just never deleted...

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

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

  • @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.

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

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

  • @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!!

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

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

  • @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.

  • @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 Рік тому

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

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

    Houses are bloat; that's why Luke's recording in the great outdoors.

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

    where do you keep your prv data then?

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

    Got 193 lol, it's been a while since I cleaned but I thought my homedir was organized - obviously not

  • @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)

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

    I got 196. 72 of those are zsh history files. 12 vim tmp files. A lot of dot dirs.

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

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

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

    64 like a true Computer Scientist

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

    you should do a video about stow

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

    I have a lot of files because I have to manage a lot of git repos . So I put them in home for convenience . our company has close to 30-40 repos lmao

  • @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

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

    Yes

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

    How do you move the .Xresources file? I tried to do so in my .xinitrc but that gave me a bunch of issues...

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

      Xresources never has a real default location. It's all an issue of which script runs it; just change it there.

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

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

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

    I saw that thread on /g/ too

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

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

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

    91 → 74 (after I got rid of the files that were just sitting waiting to be deleted or moved elsewhere.)

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

    44, guess I'll do some spring cleaning

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

    What terminal emulation you use? :D