![]() The standard Oh My Zsh theme is ok but my favorite is one we need to install separately - SpaceShip □ check out the SpaceShip theme GitHub repo and then come back and we'll install it! zshrc file, to do that type this into your terminal: source ~/.zshrc You can find them in the Oh My Zsh plugins wiki. history: type h to see your command history.gitignore templates, type gi list to see all that are available gitignore: no more searching online for. ![]() common-alias: does what it says on the tin.sudo: run a command that needs sudo at the start and you didn't add it, hit esc twice and now you do, along with the command you tried to run.dirhistory: use alt + up and alt + down to navigate your directory structure.copypath: simply type copypath and the current working directory is not in your clipboard.git: handy git details right in your command prompt. ![]() zshrc: plugins=(git)Īnd change it to this: plugins=(git copypath dirhistory macos sudo common-aliases gitignore history) Let's add some plugins to Oh My Zsh to step things up.įind this line in your. If you quit and restart your terminal app you should notice things look a littler different already. I can't imagine this happening though as it should get created with the installation. zshrc and then open it with your favorite code editor (if you have VScode installed you can do code. Line 1 takes you to your home directory, line 2 lists ( ls) the contents of that directory and the -a flag makes sure you see all files, even hidden ones (which is what the. Find out by typing this in to your terminal: cd ~ You should now have a new file in your home directory. Let's get Oh My Zsh installed, open up iTerm2 and enter the following: sh -c "$(curl -fsSL )"Īfter a few seconds it will be installed. Oh My ZSH is a great tool that makes your ZSH shell much, much more powerful □ and who wouldn't want that? There are hundreds of plugins available for Oh My Zsh that make you a better developer. You type commands into the terminal and the shell executes the commands and displays the results to your terminal app. Both are different types of the same thing, a shell.Ī shell is the interface you are using to interact with you computer within your terminal app. It used to be Bash but this changed with the release of MacOS Catalina. The default command shell on MacOS is now ZSH. This is a fairly Mac specific post however it looks like a similar set up is possible on Windows if you use WSL and a terminal app like Hyper or Tabby. There is one that comes with MacOS but it's not great ![]() iTerm2 - one of the most powerful and extendible terminal apps for the MacĪ terminal is the name given to an application that runs a shell - we will cover the shell next.Handy right? Let's look at how I made this and at some key terms along the way. tells me some git statuses, I have $ stashed changes (that's never good!), ! unstaged changes and + uncommitted changes.on main tells me I'm on the main git branch.All-The-Code-Website is the current working directory.This is what I got to, looks pretty nice right? I could have pieced it together from a back up but I thought it would be a good opportunity to start over and see what's changed in the years since I last did this. I recently had to reformat my Mac and that meant I had to setup my terminal again from scratch. As a web developer your terminal is a core part of you toolkit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |