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%.
@@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...
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
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.
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'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 !
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?
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...
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).
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.
@@LukeSmithxyz thanks, Luke. I have used larbs on multiple machines, it was actually what got me into arch and i3. However, due to different needs, I just use it as a reference for my personal setup. Unfortunately, my Linux skills are not advanced as yours. Perhaps a video idea: how does your script installing software from the .csv file work, and how could one add other package managers to it (I believe you got pacman, AUR, and npm; I'd add pip -even though nobody uses python, of course ;))? While I could copy, paste, modify, then test, your script over and over, I'd prefer to actually understand how it works and build a solution that works for me. Currently, I run `pacman - Qqe > ~/.backup/packages` (or similar, writing this on my phone and am not sure if those are the correct parameters) to backup my packages. There is a script for the AUR packages as well, but it'd be nice to have a script install the bare minimum I'd want on all machines from a csv file.
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.
@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"
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)
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.
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
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...
@@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?
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.
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
hei Luke I can't get gnupg to recognise his home directory after setting the env var to XDG_DATA_HOME/gnupg, I tried "`gpg2 --homedir "$XDG_DATA_HOME"/gnupg `" from the archwiki info but it doesn't work... suggestions?
> 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.
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
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!
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
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
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-
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.
Before watching this video: 50
After: 13
Thank you Luke Smith for inspiring me to clean my Home!
I have 75
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
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...
/home sweet /home!
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
3:12 “…if you go to th-actually, let’s get my face, so you don’t forget what I look like…” lol
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
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.
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...
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'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 !
I love the thumbnail.
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
I was actually waiting for a video on this topic. Thanks a lot king
Thanks for the video. My full home folder always annoyed me but thanks to the wiki link it's much better now.
rm -rf ~/*
instacleaned my home directory
say no to bloat
really efficient though
I shred everything first
0:00 Luke Smith - Specter of the Great Library
lol, thanks
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
Clean your ~/ Bucko. One of 12 Rules for GNU/life by professor Luke B(oomer) Perterson.
I inherited an employment position from someone who decided to "clean up" the filesystem.
The virgin careful home directory cleaning vs the chad leaving home to bloatmaxx and just making a separate files partition.
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.
I had 43 and a lot of those were folders like 'Music' or '.steam'.
I got 65, and I only have two months with my Arch installlation.
"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.
204... and one of those is a.out.
I have some cleaning to do
Nice shot of Trinity Library
I like when you start typing the camera starts shaking.
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
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...
THANKS LUKE
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).
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.
I just finished setting up manjaro and I have 33
That's the video I needed for a cleanup day 👍
It's worth editing the Arch Wiki if it's not up to date, quite simple to do.
Where can we find a current version of your zshenv file? I cannot locate it on the voidrice repo.
On my dotfiles, it's ~/.zprofile now.
@@LukeSmithxyz thanks, Luke. I have used larbs on multiple machines, it was actually what got me into arch and i3. However, due to different needs, I just use it as a reference for my personal setup. Unfortunately, my Linux skills are not advanced as yours. Perhaps a video idea: how does your script installing software from the .csv file work, and how could one add other package managers to it (I believe you got pacman, AUR, and npm; I'd add pip -even though nobody uses python, of course ;))? While I could copy, paste, modify, then test, your script over and over, I'd prefer to actually understand how it works and build a solution that works for me. Currently, I run `pacman - Qqe > ~/.backup/packages` (or similar, writing this on my phone and am not sure if those are the correct parameters) to backup my packages. There is a script for the AUR packages as well, but it'd be nice to have a script install the bare minimum I'd want on all machines from a csv file.
ls -A doesn't show . and .. (of course you can just remove those with rm -R if they are bothering you)
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
Hi Luke, Isn't it better to put all env vars into .profile ?
where do you keep your prv data then?
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.
I’m loving these videos lately
@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
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)
320, i have no idea why i suck at organization (but some aren't configs, some are symlinks and some are regular files)
141
I like chaos. Cannot live without it.
can anyone tell his polybar backdroud code ?
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
ok down to 33 i half suspect everything to break as soon as i restart
12, just installed OSX
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.
wc -l has a bunch of unneeded padding/white space on darwin :(
How'd you change the Arch Wiki font? I have the same dark theme, but the original font...
22. Thank you based minimalism god.
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 there a script to move dot files into .config?
The mad lad finally did it! Video saved!
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.
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.
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...
is 112 somewhat ok?
15 year old install - 270 files (actually mostly dirs).
i don't even mind. but .config might use some cleanup
What distro do you use?
@@claytonsililo8428 Gentoo, but it doesn't really matter.
With how much I reinstall out of habit, getting to fifteen weeks is a challenge, let alone years.
@@anactualfennecfox1 I was the same but now I'm stuck with KDE Neon and Xubuntu which are essentially Ubuntu.
@@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?
Mine is 65 im proud that im on the lower side
i dont use home i put everything in root and im always working as root user
I got 196. 72 of those are zsh history files. 12 vim tmp files. A lot of dot dirs.
5:17 So now instead of dotfile clutter, you have environment clutter instead.
I noticed a password store environment variable. Is there a program you use to autocomplete passwords?
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
Houses are bloat; that's why Luke's recording in the great outdoors.
I am an idiot and first did the command in a different directory I had been using and got a really low number. My real number is 49.
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.
210
EDIT: why would you do all that (move all . dirs and set up env)?
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
What's making the noise at about 4:55? I thought it was a kitten at first but it might be a bird.
Did a little cleanup
ls -A | wc -l
33
(Was 40)
I got 48.
Its mostly old dotfiles, I hate those things!
I got 41! I'm gonna clean it up now.
hei Luke I can't get gnupg to recognise his home directory after setting the env var to XDG_DATA_HOME/gnupg, I tried "`gpg2 --homedir "$XDG_DATA_HOME"/gnupg
`" from the archwiki info but it doesn't work... suggestions?
> 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.
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
Where did you get that Stylus theme for ArchWiki from?
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!
My weird machine has ls aliased to cat /dev/zero so I get nothing in my count output... :D
his head floating in the beginning freaked me out
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
I can't help it! Everything creates folders and files in my home directory!!!
oh
>286
How much did I fuck up?
Does this terminal color scheme have a name?
you should do a video about stow
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
are we counting Windows users?
74, 51 excluding backups
:(
I have only 23 dotfiles/folders though
I got 36, maybe artix has changed since he did the video because I only installed about a week ago
What terminal emulation you use? :D
how do you have a line in you're st build? (i use you're's btw)