 I've been asked a couple of times how I get my prompt to look like I do so that's what I'm going to look at today This tutorial if you want to call the tutorial Assumes you're using ZSH as your main shell Bash is completely different in terms of how you customize your shell. You could Get to a prompt like mine in bash or fish You just have to go about doing it in a different way. So today. I'm going to be using ZSH and a Plug-in as ZSH plug-in called power level 10,000. So let's go ahead and jump in So the end result will look something like this. It's not the exact prompt that I had But it'll look something like this and like I said in order for us to do this We're going to be using power level 10,000 now If you're using a plug-in manager like oh my zsh This is very easy to install if you're managing your own plugins or using some other plug-in system Power level 10,000 actually has installation for pretty much all those Calling presto, ZIM, Antibody, Antigen, Z plug, GZ, and all these stuff You can also do it manually if you wanted to do it manually I'm going to be using on my ZSH because that's what I prefer to use now. I know there are Shell purists out there who say oh my goodness why you use on my ZSH? It's such a memory hog or such a waste of space or yada yada yada. I don't care I use on my ZSH. I like on my ZSH and I don't give a crap what anybody else says So I use on my ZSH if there's a performance benefit to not using on my ZSH I'm not so perceptive to that speed change that I'd even notice So I do use on my ZSH. That's just the way I'm going to do this the way you install it then is Just clicking on this and it's just a matter of get cloning and then setting the ZSH theme in your ZSH RC file to this right here So I've already had gone ahead and done this so I'm not going to show you how to do it It's really easy just copy this And it will go through and clone that get repository and then copy this part right here and put this in your ZSH HRC and I will show you my ZSH RC once we're done setting up power level 10,000 But once you've installed this close your terminal and restart your terminal and you'll get something like this now Here's where we get into a little bit of a dependency thing in order for this to work you have to have some kind of Font on there that will allow you to see Symbols and stuff so font awesome Any of the nerd font completes any of those kind of things those will work fine power line fonts is the one that I'm Is the name I'm looking for so any of those kind of fonts now. I'm using hack nerd font. I believe I'm actually not sure it might I might have changed it, but I actually I'm using jetbrains. I'm using jetbrains nerd font So any of the nerd fonts will work the power line fonts will work as well So but you have to have one of those installed and they have to be set in your terminal as your default font Otherwise, this will not work. All right, you will I mean it will work, but you won't get any symbols So basically this is just a wizard you just go through and answer the questions. So If you see a diamond here hit yes, if you see a lock here hit yes If you see a Debbie and local here hit yes Now here's one where if you see these things and in any of them are overlapping which they're not in this case You hit no I'm gonna hit no I'm a yes. Excuse me. Yes Normally in like alacrity and termite. I'm always seeing them overlap in this part of the wizard So this is actually a first for me and this is kitty by the way. I'm using kitty. So we'll hit yes And then here's where you choose how your font you how your prompt will look Or this is where the beginning of that process So you can choose any number of you know how it will look and I'm going to hit three for rainbow So it's multicolored And this gets colors from your terminal Theme, but you can also change them manually later. So If you want the arrows and stuff you choose number one. If not, you just choose number two. I'm gonna hit one And then if you ask you if you want the Date and time as part of the second part of the font the prompt I'm gonna hit three for 12 hour because 24 hours is hard to actually know what it is because I'm stupid that way And then this we want the separator to be uh rounded for me. I'm gonna do so I'm gonna do four And we want four here again Now you can choose any of these you want but I'm just showing you how I get mine So that's four and I also want five here. I want this rounded as well Okay, and then we wanted to be on one line And we wanted to be sparse not compact. I don't want to be bunched together like that And then I want the icons to show up just fine. So we're gonna do two And we want it to be concise not fluent Okay, and then we do want the get pulled branch and stuff to show up. So we hit yes And if you in this step here, I know I'm going fast, but in this step here If you have a program that runs every time you Run your terminal. So whether that's neofetch I use fm 6000 a lot of people have dts color scripts or whatever If you have something like that you want to hit number three on this if you don't have an application that Runs every time you use your terminal you can hit one. So I'm gonna hit three in this case If You hit the wrong one of those you can always rerun this wizard by running a command It's in the documentation Chances are if you hit the wrong one of those and you have an application that runs a startup you'll get an error Every time you start up your your terminal. So make sure you choose the right one So now we've gone through and we have the prompt that I Originally had now the difference is This is using I don't know if you can see this or not But you can see that this just has tux here as the icon And I want to use a custom icon so you can do that by editing the configuration file. So the configuration file for p10k Is in the file dot p10k. So we're going to vim into dot p 10k dot zsh That's the file we want to get into and in here you can change pretty much everything about your prompt that you want So basically this is just something that is generated by the wizard by all those settings that we just went through But if you want to go through manually change any of these you could and The documentation or the comments in here is actually really good. So what we're going to be looking for Is the icon that it uses for that beginning part of the prompt. So Also here before I go that you can actually go through and Edit what appears in your prompt Here right here And that will show you what's on the left and the right side of the prompt And you can just comment on things that you don't want or add things that you do want, okay And there's also Several of these that are already commented out But you can you could go ahead and uncomment those if you want it as well So let me go ahead and scroll down here a little bit And see if I can find that Icon that I want to change. Okay. So the icon that I want to change is Right here. So I want to uncomment this And then I want to change this here. So in order to do that I need to go find the arch icon In which case I need to go to the nerd fonts cheat sheet. So nerd Fonts sheet sheet Good old google is the easiest way to get there. We'll just type in arch And this is the one we want. So we copy the icon go back to here Let's change this into this and right quit And quit this and open this back up and we have arch and that's how you get my Prompt for zsh. It's really very very easy I will leave a link down below to power level 10 000 along with the nerd fonts because like I said, you will need Some kind of font like nerd fonts in order to get this to work Other than that, it's very simple. Like I said now Is this something that you absolutely need? No For the most part, this is completely useless. It's just eye candy. That's all it is And like I said, you can do this with bash. You can do this with fish It just differs and you have to do it basically manually I actually think there is a like a oh my fish or whatever that will do this for fish for bash I'm not sure if there's anything out there like that. You know, that will do this automatically Honestly, I haven't used bash in ages like the actual bash prompt. I've always just switched to zsh. So My lack of knowledge there is preventing me from telling you whether or not You could do this outside of doing it manually, but you can do this Manually to some extent. I don't know how close you'd actually come But I know that there is ways to put icons and stuff in your bash prompt. So That is it for me today. If you want to follow me, you can do so at Linuxcast You can also support me on patreon at patreon.com slash linuxcast Before I go, I'd like to take a moment to thank my current patrons Devon, Marcus, Megalyn, Donnie Sven, East Coast Web, Merrick, Camp and Mitchell Thanks everybody for watching. I'll see you next time