Up and Running with Git Transcripts
Chapter: Tips and fixing mistakes
Lecture: Tip: pls

Login or purchase this course to watch this video and the rest of the course contents.
0:00 How do you explore the files on project systems, bash and seashell and so on. LS of course. And even over in power shell,
0:09 you can do LS. But what about a more developer friendly, More git friendly way of doing that. Well, gonna introduce you to 'PLS' an improvement.
0:22 There are other improvements for the LS command. However, this one is very developer focused. It happens to be built in Python,
0:29 so that's kind of cool, but not really the point. Here's the pls page, Dhruvkb.github. io/pls. That's just their user name.
0:42 So the idea is this is a prettier and more powerful LS for the pros and if you look at it, it's got developer friendly features, which is cool.
0:52 So for example, it shows icons and it uses colors and all sorts of stuff It will filter things out by the git ignore for example.
1:04 So instead of saying we're going to show hidden files, not hidden files, it can base that on things like they git ignored.
1:11 There's all sorts of fun stuff that you can do. So let's go over here to our desktop. This is on my MAC for the moment or in our Rps folder and I can
1:21 type Ls and I can see those. I can type just L and see more detailed listing of this but I can type pls and check this out. If you look over here,
1:35 notice we have the Python, icons, the git icon the license and the read me now.
1:43 Also notice that this .git ignored is visible here in this previous listing before I did the show everything, including hidden files.
1:53 It didn't show up. Why is that? Because it's important to developers, the dot on project systems means that it's hidden.
2:00 But for us it's really important for us to see that it is here. Okay. We also have a view like this so we can see more details about
2:15 it. And it will show us the various icons. Let's make a virtual environment really quick.
2:24 And if we look again, notice how the virtual environment versus other directories is de
2:34 emphasized here with color and that's because the virtual environment is a known temporary working directory
2:41 for this project and it's not really considered to be the core part of what files make up what we're doing here,
2:48 right as opposed to stuff in the other directory or these other files. So here's just a really nice way to work with our files in our shell here
2:57 And for some reason it's not showing up right now. But very frequently it will show the git status when you do this -- details
3:05 It'll show you, for example if a file is modified or added. So you can actually see the details file by file of the Git status while you're
3:14 at it, which is pretty awesome. Now, this is over my Mac. We have the same thing over here on Windows in our Microsoft terminal.
3:25 So that's super fantastic. Let's see if we can do it details here. Yeah, there we go. Alright,
3:32 so same basic idea over on Mac or on Linux as well as Windows, definitely recommend it. This is a fun one.

Talk Python's Mastodon Michael Kennedy's Mastodon