 So we're going to do some spring cleaning in this video. Actually, this is the ultimate test of minimalism or not really minimalism. It's really the ultimate test of are you a messy person? OK, so here's what I want you to do. I want you to run this command on your computer and you're going to get a number. The smaller is better. OK, so here is the command. LSA pipe that into word count of lines. Just run that and show me what number you got. You might as well post it in the comments section so you can all bully each other about what numbers you got. Smaller is better. I'll say that below 25 or so that's ideal. If you got 30, 40, you're sort of a messy person. If you got closer to 100, you're a really messy person. If you got more than 100, I don't know what's going on. You got some improvement to do or something. I don't know what's going on in your head. Now, of course, LSA, that's listing out all the files in your home directory. Now, of course, if you just do LS, that's only your normal files, but really what we're looking at is the hidden files here. Now, of course, part of the mess comes from you just keeping a bunch of files in your home directory. Some people do that. I usually have my downloads directly to my home directory, even though I have a download folder. But when it comes down to it, LSA will list out all these config files, which usually on Linux are going to be most of the files in your home directory. Now, the reason this is. Now, people ask me. Actually, I should say the reason I'm doing this video is I will occasionally LSA, and people will comment about how few files I have in my home directory. It looks very organized. You can see them all. A lot of people, if you run LSA, it'll take up the entire terminal screen. There are easy ways to minimize the files in your home directory without messing things up. Now, here's the story. How is this relevant to anything? It used to be that every single program, for example, your BashRC or i3 configuration, your stuff like that, every single configuration file used to go directly in your home directory. So that meant that if you had 100 programs, you had 100 dot files in your home directory. And that's just going to be total mess. Whenever you have to run some command, even just look at the contents, you're just going to see all this junk. Now, what eventually happened is people started moving things into different folders. So for example, .config, if I LS the contents of .config, you'll see I have a whole lot more in here. Actually, let's count it up. I have 75 directories and files in here. And actually, some of these I don't even use anymore. But if in the olden days, all of this junk would just be in your home directory. It was a big mess. But gradually, there started, I guess, what people call the XDG directory specifications, which meant, OK, we're going to move all config files to .config. We're going to move all cache files to .cache. And there's also some stuff in .local slash share as well. And that is just a way to clean up the home directory. Now, if you go to the ArchWiki right now, there is actually, let's get my face, so you don't forget what I look like. If you go to the ArchWiki right now and go to XDG base directory, if you check that article or whatever, it actually lists out over time a bunch of the programs actually that let me go back here to provide some examples. Let's say, for example, I3. Used to be the I3's config was way back. I don't even know where it used to be. I3, yeah, it used to be in your home directory in the .I3 folder. And I think, actually, I think if you get like Manjaro I3 by default, they still have it in this folder. It's disgusting to me. You need to just move everything into config. But as time went on, this is actually a list here. So for example, the supported programs, these are programs that all have moved into .config or moved their cache to .cache and stuff like that. So if you are using any of these programs, although they might have some legacy option to have it in your home directory, you can easily just move your config file into config I3 slash config. And it will still work perfectly fine. So you can go ahead and start moving those files into the config directory or whatever. Now, there are other programs. Now, in order to get rid of some other programs from your home directory, actually, let me show you. I have a, where's my environment file? Actually, by default, I should say this file in my home directory, ZSH environment, I actually just have it list or load a series of environmental variables. And this is what they look like. Now, you'll notice I have this big category here called cleanup. And that is all the different, there are other programs that don't necessarily support the XDG directory specifications. They don't automatically look in the config directory for configuration files or for cache files. But you can move things by manually setting them with environmental variables. And that's what I've done here. For example, X authority, by default, you will have a .x authority file in your home directory. But you can easily move it by just setting this variable in restarting, right? Same thing with a lot of things, input RC, WGIT, less has this annoying history file. I actually just delete it, a whole bunch of stuff. And there are more here. These are just the programs I happen to use, which recent GNU, PG, stuff like that. Even Kodi, I found out, it's not on the ArchWiki. There are some things that are actually, let me scroll down to that. So let's see. The ArchWiki does a good job at listing out most of the things that can take, let's say, environmental variables. I guess it might not have them in a separate section. But it lists out some of the things, the environmental variables that you can change. But they don't list all of them. It's not perfectly updated. But you can move a whole bunch of these just by specifying. So for example, my ZSHRC. By default, that's going to be in your home directory. I don't like it there. So I have it moved into .config slash ZSH. It would be really nice if they just had XDG compatibility and ZSH by default. But you can at least set this. So anyway, that's a way to clean up your home directories. So here are some of the variables I use. And there are other programs that still haven't built that, the ability to use environmental variables into their programs. But there are other things you can do. For example, I think if I go to my aliases here, there are a couple of programs, let's say Abook. Abook is an address book. And by default, it looks in the home directory. You can't change that with an environmental variable. But you can give Abook the capital C option to change the location of its config file. So that's what I do here. I move it and it's data file to somewhere else. So whenever I run Abook, it actually runs this larger command that looks in a different place for the configuration file. So anyway, that is how I clean up my home directory. I recommend you to check out this page on the ArchWiki just to give you ideas of where to go. But I definitely like cleaning. I like having my home directory very clean. I've always liked it like that. And it actually annoys me to know in the fact that there are still files in here that I haven't moved to some other location, like the ZSH environment. I'd like to be able to set that environmental variable somewhere else in a user-specific location so I don't even have to have this file. You can actually move some of these. You can move X in at RC, but not every program will properly read them correctly. If by default, if it's listed in the ArchWiki, you can at least move them without any major problems. So I recommend trying that. Anyway, that's about it, just the minor note, just because people have asked. I'll see you guys next time. Oh yeah, I'm using my built-in webcam and microphone for this video just because I don't know, I wanted to record outside. I actually got a new ThinkPad X220 and its microphone is not that bad. It's a lot better than the one I used to have. Maybe I'll talk about why I got a new one in another video, but all right, that's it. See you guys next time.