Full Web Apps with FastAPI Transcripts
Chapter: Deploying FastAPI on Linux with gunicorn and nginx
Lecture: Adding ohmyzsh
0:00 Before we start configuring our server,
0:02 I wanna 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 just a lot, a 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 to 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 And then 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 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 Don't have to, but I find it makes life a little bit nicer.