Installing Oh My Zsh2:37
And this comes in handy sometimes. For example, right now I can see that the settings is open behind this window. Next up, I'm using OhMyZsh as my shell. So this is a layer on top of Zsh, which offers extra functionality and plugins. So go ahead and download this. And I think I just used the curl command here to install it. So that should install a default theme. And now let's go ahead and take a look at the config file. Actually, before we do that, it adds functionality like some aliases. For example, I like using ll instead of ls, which lists out more details than a standard
Editing .zshrc in Vim3:30
If you want to go back up, you don't have to do cd .., you can just do .. directly. So small things like that, but I'm so used to using it. So for the config file, I like using vim to edit it, so we can do vim into our home directory slash .zshrc. And you can see my config here. Now by default, you're not going to have syntax highlighting for vim because you have to set that up as well. So let's go ahead and do that together. And then we'll take a look at this config.
Configuring Vim Theme4:16
But the only thing I want to do here is set up the color scheme. So the color scheme that I'm using is this one here, vim-material-theme. And for installation, it says to use pathogen. So I installed that first, you can find that here. And the installation instructions here. So I installed this, then I installed material-theme with the instructions here. And now you have to make a vimrc file. So let's go into that. So it's going to be vim, vimrc. And again, these settings, I basically just copied from Jeffrey's settings.
Creating Shell Aliases7:32
So instead of doing this command, I just do Z shell config, and it does the same thing. And then if I change something, then I just do Z shell reload. I have this alias that opens host files. This one's pretty useful for setting up a php server. So for example, if I'm working with a static site generator, and I want to quickly preview it, I just build the site, go into the dist folder or whatever it's called, and then run server. This one I just created for this new computer, I found myself having to copy my public key pretty often. So I made an alias for it.
pretty often. So I made an alias for it. So I just type publicKey and that copies my publicKey into the clipboard. So these ones down here are Laravel specific, I try not to use it in screencast because that might confuse some people, but I do use it when I'm not recording. So A for php artisan, Tinker for php artisan tinker, MFS for php artisan migrate:fresh --seed, PHPUnit, and Pest and Vapor. Next I have some git specific ones, which overwrite the plugin that I showed you earlier. So this one comes from Jeffrey. If you're working on something and just want to reset everything, Jeffrey created this.
So this one comes from Jeffrey. If you're working on something and just want to reset everything, Jeffrey created this na alias, which I use often. gs, git status, git add, git commit. gl is something that I like. So let me open up another tab and let's see what I can open here. Let's check out manual/auth. And the standard git log is fine, but it shows too much information, which I don't need. So doing gl condenses that information into one line. So if I have more commits here, you can see more here.
Enabling Editor CLI Tools9:32
And these two I use all the time as well. So same thing, but this opens the folder in Sublime. And same for VS Code. So super useful and easy to open your projects within your editor of choice. So in order to do that, you have to make sure that you have these command line tools available. So for Sublime, I have an article here. Just make sure to follow this. And then you'll have the Sublime. Let's do which here, which Sublime command line tool available. So you can open it from the command line.
Let's do which here, which Sublime command line tool available. So you can open it from the command line. And for VS Code, I believe all you have to do is hit command shift P and then run this command, and it should install it for you. So you should have the code command available to you. And then you can alias it like I did if you want. So yeah, that's it for my aliases. And one more thing I want to show you in iTerm is let's go to my home directory here. Let's take a look at all the files. And if I scroll up here, you'll see a file called .hushlogin.
Removing Last Login Message10:32
Let's take a look at all the files. And if I scroll up here, you'll see a file called hush_login. So if I don't have that, then every time you open a new file, then it has this annoying last login. So just go ahead and create that file. So touch hush_login, and that will get rid of that. So now when I open a new tab, it doesn't show. So yeah, that's the majority of settings for my iTerm. I see a lot of people using the built-in terminal in VS Code, which is great, and I do use it occasionally.
