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