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

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so we're gonna do some spring cleaning in this video actually this is the ultimate test of minimalism or an out 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 gonna get a number the smaller is better okay so here is the command LS a 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 or better I'll say that below 25 or so that's ideal if you got 3040 you're sort of a messy person if you got closer to a hundred you're a really messy person if you got more than a hundred I don't know what's going on you got 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 LS a 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 of I have in my home directory it looks very organized you can see them all a lot of people if you run LS a it'll take up the entire terminal screen there are easy ways to minimize the files in your home directory without messing things up okay now here's the story here's how is this relevant to anything it used to be that every single program for example you know bat your bash RC or I three configuration your stuff like that every single configuration file you used to go directly in your home directory so that meant that if you had a hundred programs you had a hundred dot files in your home directory and that's just going to be total whenever you have to run some command even just look at the contents you're just gonna see all this junk okay now what eventually happened is people started moving things into different folders cell for example dot config if I LS the contents of dot config you'll see a hovel a whole lot more in here actually let's let's count it up I have a 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 okay we're gonna move all config files to dot config we're gonna move all cache files to doc 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 arch wiki right now there is actually let's give my face so you don't forget what I look like if you go to the arch wiki right now and go to xdg base directory if you check that that article or whatever it actually lists out over the over time a bunch of the programs actually that let me go back here to provide some examples let's say for example I three it used to be the I threes config was way back I don't I don't know even know where it used to be I three yeah it used to be in your home directory in the dot I three folder okay and I think actually I think if you get like Manjaro I three 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 pro 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 you know config I three slash config and it will still work perfectly fine so you can go ahead and start moving those files into into those through 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 zsh environment 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 specification so they don't automatically look and 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 it will 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 W get 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 recently you know do PG stuff like that even Kodi I found out it's not on the arch wiki there are some things that are actually let me scroll down to that so let's see on the arch wiki 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 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 those so for example my Z shrc by default that's going to be in your home directory I don't like it there so I haven't moved into dot config slash z8z Sh 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 very use and there are other there are other programs that still haven't built that you know the invert 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 programs let's say a book a book is you know an address book and by default it has 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 okay so anyway that is how I clean up my home directory I recommend you to check out the this page on the arch wiki 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 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 at you can't actually move some of these you can move X in it RC but not every program will properly read them correctly but if by default if you know if it's listed in the arch wiki 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 cuz people have asked I'll see you guys next time oh yeah you're like i i've been i'm using my my built-in or 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 x2 20 and it's microphone it's 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 alright that's it see you guys next
Info
Channel: Luke Smith
Views: 87,687
Rating: undefined out of 5
Keywords: linux, gnu, macos, bsd, dotfiles, configuration, clean, remove, home, ~/, directory, minimal, minimalist, xdg, specfications, cache, local, share, settings, edit, system, traditional
Id: yy8RoDSdhIQ
Channel Id: undefined
Length: 8min 42sec (522 seconds)
Published: Tue Mar 24 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.