what's up you guys so not too long ago I posted a video on how to set up alacrity and a lot of you recommended that I try out Wes term they're both fast GPU accelerated terminals written in Rust that are also cross platforms you can use them on your Mac windows or Linux machine but westerm does have some additional features like ligature support I really like that the configuration language is Lua and overall it's just a really nice terminal emulator and I've been using it ever since since you guys recommended it to me by the end of this video you'll be able to take your boring plain default terminal and turn it into a pretty amazing terminal setup with Wes term in the description you'll find a blog post with all the code that I'm going to be using that said let's get started all right so I have the default Mac terminal open here the first thing we need to do is to install Wes term I'm going to do this with Homebrew so make sure you have home brew installed I'm also using zsh for my shell which is the default on a Mac if I do echo in dollar sign zero you'll see that it says zsh if you're on Linux or Windows I recommend you take a look at the West term installation instructions for your specific system in the documentation to install it with home brew I can do Brew install D- Cask Wes term if you don't have Homebrew installed you can take a look at the blog post where I have instructions on how to do that you also need to make sure you have git installed again I'm going to do this with home brew I'm going to do Brew install git and the next thing you're going to want to do is to install a nerd font this is so that the icons we're going to be using in our setup can show up properly in the previous video I made on how to set up alacrity there was an extra step involved in installing this nerd font through Homebrew but after some recent changes now you can just do Brew install and the name of the nerd font you want to install these are all stored in The Homebrew Cask repository the one that I use is called meslo nerd font and to install it we need to do font dm- lg- nerd D font all right now I'm going to close this window with command q and I'm going to use command space and look for Wes term which we previously installed and press enter and now we can start configuring West term itself this is going to be really similar to my alacrity setup but in this case the configuration is done with the Lua programming language which is the same language that is used to configure neovim and I find this to be a really nice feature of Wes term I'm going to use Touch to create the file and it's going to be located in our home directory sl. Wes term. Lua which is the name of the file and then you can open this up with your editor of choice you can use something like text edit by doing open- a text edit till the sl.
Wes term. Lua that will open it up with text edit or if you have vs code installed you can also do code Tilla sl. West term.
Lua and that'll open it up in vs code now I'm going to open the West term. Lua file with neovim which is what I use I can do envm till the. West term.
Lua and press enter now I can add the following which will allow us to set up our configuration over here we're loading the West term module and then we're getting the config Builder and saving it in a variable called config now config is essentially a table and we can set the value of different fields to configure westerm the first thing I want to do is set up the font and to do this we can set the value of a field called font and make it equal to West term. font which is a function and inside we pass a string with the name of the font that we want to set up this case I want to do meslo LGS nerd font mono which is the name of the font that we installed earlier with Homebrew then I want to set up the font uncore size and I'm going to set this to 19 this is up to you and it also can depend on your screen resolution now before I continue we can keep adding configuration options here and the last thing we'll do is to return the config table I'm going to save this and I'm actually going to quit West term with command q and press y for yes and then I'm going to do command space and and look for westerm again and again I'm going to open up the West term. Lua configuration file with neovin now that we had the configuration file created and we quit and restarted Wes term it's now aware of our configuration and any further changes we make to this file will automatically get applied very similar to what happens when you make a configuration change in a laity so the next thing I want to add here is an option to disable the tab bar that's because I don't really use the Western built-in tabbing but this again is up to you before I disable it I do want to point out that if you want to use it you can do command and T that will create a new tab and if you do command shift and opening bracket you'll go backwards and command shift closing bracket you'll go forwards I'm going to type exit here to close this tab I'm just going to disable it with enable uncore tab bar is equal to false and then if I save this you'll see it goes away another thing you can do is to modify the top here where we have the resize buttons you could hide this title bar if you wanted to you can do config do window deorations equal to none for example if I save this you'll see that the top there goes away but there's no way to resize the window if you have none here so I wouldn't recommend you use this instead you can do resize and then you can actually resize the window with your mouse the default you were seeing earlier is title and then a pipe symbol and resize so that you enable both and you'll see there that it comes back I typically resize windows with my window manager so I'm going to personally keep this with resize now the last thing I want to do is to change the colors of Wes term to my custom theme this is the same one that I created for alacrity and what's really nice is that we can just add it within this file we can do config docolors and that's equal to a Lu table and in here I'm going to add the following you can find this code in the blog post I'm just going to save this file I've designed this color scheme to match nicely with my neovim config and then finally if you want to add some opacity or background blur you can do so with the following two options this first option will allow you to change the opacity of the window and if you're on a Mac you can also change the background blur I believe the background blur goes from 0 to 100 and it defines the blur radius so how blurry you want the background to be and this goes from 0 to one where 0er is completely translucent and one has no transparency if I save this it'll get applied you can see a very subtle difference here around the edges I can also lower this opacity value to 0.
5 for example example and it'll be a lot more translucent let me set this to8 now if I quit neim with colon q and enter you can see this a lot more clearly if I were to have something like vs code open and I have the terminal window on top you'll see it show up behind it with some blur applied as well if you want neovim to be transparent let me open up my neovim config which is located in my. config envm folder this is for those of you that are using my setup under Lua hold ion plugins color scheme I've updated the code so that you can change this transparent variable to true or false if I change this to true and I close and reopen neovim then you'll see now that it is also transparent you can take a look at my neovim configuration code and the repository for my DOT files Linked In the description right now I'm going to disable the opacity and background blur so I'm going to comment these two lines out and save this now as you've probably seen in my other terminal setup videos I use power level 10K for my theme we need to install it I'm going to do Brew install power level 10K and then we need to execute the following code you can grab this from the blog post which will add what we need to enable power level 10K to our do zshrc file and then we can reload this file with Source till the sl. C has HRC that'll open up the power level 10K configuration wizard now over here the icon looks good because of the nerd font we installed so let's do y for yes y y y I've been using the lean Style with one unit code with one eight colors with two the current time in 12h hour format so one two lines with two dotted with two left frame with two and I've been using black with one and I want sparse so two many icons so two concise so one and I don't want the transient prompt so n for no and one for verbose and then finally y for yes to overwrite the config file and Y for Yes again sweet so everything is looking really really nice now now the rest of my setup is pretty much the same as the alacrity setup that I showed you you guys in a previous video of mine I'm just going to run through this briefly there's a couple of extra things that I like to install I'm going to do Brew install and I'm going to install CSH Das Auto suggestions and zsh d syntax-highlighting and press enter to set up Auto suggestions you can run the following code again you can find this in my blog post and to set up the syntax highlighting you can use the following code both of these just add the necessary lines to CSH HRC and then we can Source the zshrc file like so and now if I start typing out a command I get the auto suggestions you can accept one with the right arrow and you'll see here that this green means that this command is valid and that's from the syntax highlighting if I go back here you'll see that it turns red I also like to improve the history completion I'm going to open up the zshrc file like so with neovim and at the bottom here I'm going to add the following to make some changes to how the command history is managed and I'm going to write in quit with colon X and enter then you need to figure out what your up and down arrow keys are you can do c-v and then press your up arrow and then your down arrow and so these are the two that you need open up these as HRC file again go down to the bottom here and I'm going to add the following two lines this is for my up Arrow use whatever output you got for that and this is for my down arrow then I'm going to save and quit with colon X and enter now I'm going to do Source till the sl.
Cs HRC and if I start typing a command like C A for cat and press the up Arrow it'll complete it according to the command that I started typing if I do s o and press the up arrow and up Arrow again and again it'll continue going back in the history and then you can use your down arrow to go to more recent commands now I also use eza and zide for a better LS and a better CD so I'm going to do Brew install eza and zide these are some really nice tools you can learn more about them in my CLI tools video then again I'm going to open up my zshrc file like so and at the bottom I'm going to add an alias for LS which is going to be equal to eza and I want to always enable the icon cons like so and then finally I'm going to add the following to enable zide and create an alias 4 cd equal to Z and save and then quit now zide after you start using it remembers the directories that youve visited and you can use only a portion of its name to go back to it so for example I have a directory called spelit blog if I just type CD spell it'll take me back to that directory you need to first visit this directory like normal and then you can use just a portion of its name to navigate to it much more quickly in the future and if I use LS it'll look a lot nicer because of eza now westerm does have some builtin functionality for split panes I personally just use t-u for this and this is what I prefer this is how I manage all of my programming sessions and working on different projects but if you do want to use the built-in panes functionality you can use control shift shift alt and percent to create a vertical split or control shift alt and double quote for a horizontal split to navigate through these you can use control shift and a arrow key so up down left right so on and so forth I'm going to close these with exit and exit if you want to use my t-mo setup instead I recommend you check out my dedicated video on that to give you a quick rundown on how to set this sub you can install t-o with home brew like so Brew install t-o then you can use the following command to use my t-o config it will get saved to your home directory sl. tmo. com I'm going to press enter here and you also want to use the following command to install TPM or the t-mo plug-in manager and then you can do t-o and press enter to start it up and do contrl a followed by shift I this will install the different plugins for t-mo that I use and then you can press enter if the bottom status bar isn't working properly for you you might need to install a newer version of bash and to do that you can do Brew install bash if doing crl a and shift I didn't work for you you can also first try doing t-mo source till.
tx.