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