The other thing I want to show you is the new Windows Terminal from Microsoft.
To install this,
you need to go to the Microsoft Store, because this is the only place
where it is currently being delivered or offered, and just do a search
for windows terminal and you'll get the Terminal App to come up here.
Now, I've already installed it,
so you don't have to sit and watch me download an application.
You'll go ahead and install it, I'm just going go ahead and launch it from here.
I have not added it to my shortcuts yet, so I have to‑‑‑
this is a nice and easy way to do it.
Let's go ahead and pop this fullscreen here.
Now,
what you see here, by default, is a tab. It may be a little
hard to read, the font may be a little small, we can adjust
that later if we need to.
This is Windows PowerShell.
If we look at the drop‑down list here, there are other types of
tabs that we can add here, like a cmd window.
There's also something here for Azure Cloud Shell,
which I'm not going to get into because I don't have Azure set up,
but there's also PowerShell.
This is PowerShell 7, as you can see there.
Now, I've already made a change to the settings file.
Let me show you how that works.
You come back down here and go to Settings.
Now,
a lot of the settings are already set for you, and you
don't really have to do too much.
The settings file is a JSON file.
Normally,
you're going to have something like VS Code installed on your computer. So
when you go to settings, VS Code will open up the JSON file,
which is a whole lot easier to work with than Notepad,
which is the only thing I have available to me.
The JSON file is a little complicated,
and you may need some help if you're really needing to fine tune some stuff.
The only change you really have to worry about, if you need to,
is just maybe changing the font size.
And so I went down here and found that PowerShell item, this is the
profile, all these tabs are referred to as profiles in Windows
Terminal, and I just added this element, fontSize.
It's a JSON file, it is case sensitive,
and I changed the fontSize to 20. Again, there are a lot of settings that you
can configure for this, you can make it transparent, you can add graphics, it's
really a cool thing that you can do, but for right now, all I care about is just
making it a little bit easier to read.
Once you make the change and save the file,
the change is immediate and it will be reflected in the Windows
Terminal app. So you can have as many of these windows open as you
want, and when you're done you can just close them. Same thing, I
can just type a dir command, clear the screen, cd to Windows, and
you do have tab completion, by the way, in PowerShell.
So if I wanted to do sys and hit Tab, I can go to the
System32 directory. Go back to the root.
All right,
so that all works the same way, it's just nice with the Windows Terminal
that I can have multiple PowerShell sessions open because I often need to
have Windows PowerShell open and PowerShell 7 open,
and I've got some other customizations done for additional tabs, as well.
I think if you play with the terminal,
you'll like it. When you're done, you can either close it like this or if
you are in a profile, type exit, that closes that profile.
So that is a look at the different ways that you can access PowerShell. Let's go back to the slides and wrap up our lesson.