Modern APIs with FastAPI and Python Transcripts
Chapter: Deploying FastAPI on Linux with gunicorn and nginx
Lecture: Adding ohmyzsh
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
Before we start configuring our server, I want to set up "oh my zsh", or "oh my z shell". Now, this is absolutely not required.
0:08
But I find the ability to go back through history and use frequently commands and adapt
0:13
them and stuff and just knowing how to work with Git, you can see like in the little screenshot here,
0:18
the prompt changes based on where you are in a Git repository and things like that. It's just a lot, lot nicer.
0:24
So I'm gonna go over here and I'm gonna copy this bit right there because that's how we're going to install it. And let's reconnect to the server.
0:32
I renamed the host name because it was driving me crazy. So now it's "weatherserver". And in order to install this,
0:37
I have to say "apt install zsh" because this is based on z shell. Then we run this. wait for a minute,
0:45
make it the default. And now we have a little bit of a nicer prompt. The next time we log in,
0:50
actually, gotta log out twice the first time because you log out of z shell, then log out of bash. We'll have this, You can see,
0:56
our little new shell is here, and we'll see Maybe some stuff as we go through it. But this is just a nice little step.
1:02
I find this a much, much nicer way to work with servers. So I encourage you to set this up.
1:08
You don't have to you, but I find it makes life a little bit nicer.