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. Okay? 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. Okay? 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, you know, your BasharC 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. For example, dot config, if I LS the contents of dot 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 they're started, I guess what people call the XDG directory specifications, which meant, okay, we're going to move all config files to dot config. We're going to move all cache files to dot cache. And there's also some stuff in dot local slash share as well. And that is just a way to clean up the home directory. Now, if you go to the Archwicky right now, there is actually let's get my face. So you don't forget what I look like. If you go to the Archwicky 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, let me go back here to provide some examples. Let's say for example, I3. It used to be the I3's config was way back. I don't even know where it used to be. Yeah, it used to be in your home directory in the dot I3 folder. And I think actually, I think if you get like Mangaro 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 dot config or the, or move their cache to dot 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 that, into those, 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? Okay, actually by default I should say so my, this file in my home directory, CSH 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 dot 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, you know, GNU PG stuff like that. Even Cody 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 has it 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 that 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 haven't 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 need to use. And there are other programs that still haven't built that, you know, 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 that let's say A book. A book is, you know, 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 A book the C option, 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 A book, 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 sort of 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. But actually, it 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 and N 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, you like? 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 it's 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.