12/18/2022 0 Comments Iterm themes zsh![]() ![]() For me, that is the current directory followed by git branch information. ![]() While we just configured the color scheme to the terminal, we now need to configure what is displayed at the prompt. I chose Meslo LG M For Powerline 13pt font as well as the “vertical bar” in the “Text” tab.Īlso, you will probably want to uncheck “Draw bold text in bold font” to have a more consistent text experience with other programs outputting text. IMPORTANT: I would suggest adding the 3 lines that update your PATH since those may have been in your PATH by default with Bash whereas zsh might not provide those by default.įinally, the aliases are for declaring helpful shortcuts to speed up development! The nice thing about our setup is soon we will have plugins which automatically add aliases for us. The PATH declarations are me appending different files to my PATH, which is the list of locations your terminal application will look after executing a command. The exports are for environment variables. It is for this reason that after changing ~/.zshrc or updating some sort of terminal/shell configuration, you should restart your terminal to ensure the file gets re-ran and the changes take effect.Īn example file like this might look something like this: export JAVA_HOME=$(/usr/libexec/java_home) export PATH=$PATH:/usr export PATH=$PATH:/usr/bin export PATH=$PATH:/usr/local/bin/ alias gs='git status' alias dol='cd ~/dolomite/backend' Note: If you did have some sort of git branch display function you’ll want to remove that now as it won’t be necessary since the oh-my-zsh theme will provide that for you.įor those who haven’t heard of “bash settings” or bash_profile essentially, the two aforementioned files are run as the shell is loaded, so any aliases, environment variables, or callable shell functions are loaded by that file for your terminal session. ![]() Feel free to copy them over to the bottom of the ~/.zshrc file. ![]() Your new settings are stored in ~/.zshrc. It’s likely you had your bash settings stored in a ~/.bash_profile file and you still want some of those settings. This will add many fonts to choose from into iTerm. install.sh # at this point you can delete the fonts folder if you want We will use these fonts to style up the iTerm later. This adds a ~/.oh-my-zsh directory with many default themes and plugins which we will edit later. You can check if you have it installed by running curl -help in iTerm and seeing if it’s recognized. If you don’t, you can run brew install curl. Make sure you have curl installed for this. Installing Zsh brew install zsh Installing Oh-My-Zsh Once you have iTerm installed, open it and run all future commands in there. This will add the iTerm application to your ~/Applications folderįeel free to install the zip from the website if HomeBrew gives you any issues. Homebrew will also tell you some last step of the installation too like adding a line of code to a settings file, so don’t skip that! Installing iTerm2 brew cask install iterm2 If there are any errors, Homebrew will typically tell you the exact command to type to fix the error. IMPORTANT NOTE: In general, for any Homebrew installation, be sure to read any messages Homebrew gives you after installing. Installing Homebrew /usr/bin/ruby -e "$(curl -fsSL )" For this tutorial, I’ll be using Homebrew (a package manager for installing other software easily from the command line) for appropriate installations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |