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 💰😎👌💯 - Наука та технологія
Remember kids! The only true way to be a minimalist is to recursively force rm your entire ~/!
do a meme review on tradwife pls
sudo rm -rf ~/.* is
yeah kids... just don't do a sudo rm -rf ~/../* - that would be a bit too minimalistic...
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%.
140... I blame windows.
Luke really took the "boomer ranting in the woods" meme even further
I want to see a kernel compiled by a campfire! Everyone roasting marshmallows and you're enabling preempt and hardware specific flags...
@@jamesm5192
Campfire programming session!
Campfire programming session!
Campfire programming ses-
Cheat code: Using 'A' instead of 'a' will improve your score by 2 points.
But it would be the more "correct" score, right? Since it doesn't list `.` and `..`, which is the same for all directories anyway
Before watching this video: 50
After: 13
Thank you Luke Smith for inspiring me to clean my Home!
I have 75
Luke: "Keep your home directory clean!"
Also Luke: Puts downloads in his home directory like a savage
I may do this too. I never really understood the Downloads folder.
@@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.
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...
Downloads belong in /tmp/ unless you go out of your way to save them.
@@alerighi This seems like having a very large rug to sweep things under rather than actually helping keep things organised.
Luke: mv ~/* .config/
Also Luke: muh my home is so clean
Wouldn't that also put .config in .config recursivelly?
@@amosnimos nope itll throw an exception and leave it out but move the rest
I remember watching this video and not knowing a single thing that is going on. Life really goes downhill...
Me too...
You should've used ls -A as it removes directory listing of . and ..
Man of culture.
best, thanks
ls -a is bloated af
He is reducing the additional effort of pressing shift. Minimalism.
@@RaveenKumar this is why you alias ls -A to la
/home sweet /home!
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
3:12 “…if you go to th-actually, let’s get my face, so you don’t forget what I look like…” lol
rm -rf ~/*
instacleaned my home directory
say no to bloat
really efficient though
I shred everything first
I'm very glad this exists now. I have needed this since the zsh conversion video.
$ ls -1 | wc -l
1263
Lol. I got 62 and thought that was bad.
Not even "ls -1a", and that much.
Kind of a "yikes" as the kids would say.
@@elidrissii $ ls -1a | wc -l
1708
It's even more, YIKES
powerful...
I thought I had the worst with 131...
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.
0:00 Luke Smith - Specter of the Great Library
lol, thanks
Thanks for the video. My full home folder always annoyed me but thanks to the wiki link it's much better now.
I was actually waiting for a video on this topic. Thanks a lot king
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 !
The virgin careful home directory cleaning vs the chad leaving home to bloatmaxx and just making a separate files partition.
That's the video I needed for a cleanup day 👍
"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.
wait there was a dx playthrough? was it a stream?
@@babitz0r yeah it was a stream
@@dn232 No way. I wish he archived those streams or something.
Clean your ~/ Bucko. One of 12 Rules for GNU/life by professor Luke B(oomer) Perterson.
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.
I love the thumbnail.
I’m loving these videos lately
THANKS LUKE
I inherited an employment position from someone who decided to "clean up" the filesystem.
before
ls -a | wc -l
~55
now
ls -a | wc -l
11
feels good man
This is the way
How did you get so low jesus! I bet you put your xdg_downloads in /tmp don't you
5:01 That “du” command looks like an expensive way to find subdirectories.
Woah, was pretty sure my 73 would be mess, but you guys are just brutal.
Nice shot of Trinity Library
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).
I had 43 and a lot of those were folders like 'Music' or '.steam'.
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.
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.
81
Apparently every program I use creates a dotfile in my home folder.
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
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.
141
I like chaos. Cannot live without it.
I got 65, and I only have two months with my Arch installlation.
The mad lad finally did it! Video saved!
I like when you start typing the camera starts shaking.
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?
suckless builds: ~/.local/src
npm packages: /dev/null
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 :(
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)
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! :)
136, not counting the `.` and `..`. I don't know what was going on too. The env tips is awesome, thank you.
I just finished setting up manjaro and I have 33
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...
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!
I noticed a password store environment variable. Is there a program you use to autocomplete passwords?
204... and one of those is a.out.
I have some cleaning to do
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
I got 41! I'm gonna clean it up now.
Nice video!
It's worth editing the Arch Wiki if it's not up to date, quite simple to do.
How'd you change the Arch Wiki font? I have the same dark theme, but the original font...
@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"
big brain
Hi Luke, Isn't it better to put all env vars into .profile ?
12, just installed OSX
22. Thank you based minimalism god.
Mine is 65 im proud that im on the lower side
his head floating in the beginning freaked me out
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
not worth it, it will break your system soon
0:23 Should really make that “ls -A”.
So its actually 16? 🤯
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
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.
Is this a code to how many months you will go absent?
before watching: 18, after watching: 8.. thx luke
number 2 !!
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
Where did you get that Stylus theme for ArchWiki from?
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
how do you have a line in you're st build? (i use you're's btw)
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...
I did the homework... from 87 to 52.
> 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.
Did a little cleanup
ls -A | wc -l
33
(Was 40)
ls ~ -a | wc -l
149
and I am fine with that.... You know what? It's a prime number; I love it!!
I got 48.
Its mostly old dotfiles, I hate those things!
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.
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
Agreed. Just use the defaults in tandem with a version-controlled GNU Stow directory. Way less overhead both cognitively and computationally.
Houses are bloat; that's why Luke's recording in the great outdoors.
where do you keep your prv data then?
Got 193 lol, it's been a while since I cleaned but I thought my homedir was organized - obviously not
320, i have no idea why i suck at organization (but some aren't configs, some are symlinks and some are regular files)
I got 196. 72 of those are zsh history files. 12 vim tmp files. A lot of dot dirs.
47 right now, but most of them are hidden, like .git, .BurpSuite, etc
64 like a true Computer Scientist
you should do a video about stow
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
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
Yes
How do you move the .Xresources file? I tried to do so in my .xinitrc but that gave me a bunch of issues...
Xresources never has a real default location. It's all an issue of which script runs it; just change it there.
ls -A doesn't show . and .. (of course you can just remove those with rm -R if they are bothering you)
I saw that thread on /g/ too
Kek
31... I prefer using ~ instead of .config/ or .local/ that why
91 → 74 (after I got rid of the files that were just sitting waiting to be deleted or moved elsewhere.)
44, guess I'll do some spring cleaning
What terminal emulation you use? :D