Then symlink it to your Oh My Zsh themes directory with this command: ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme" Great, now we can install SpaceShip! Enter the following into your terminal to clone the repo and save it to the ZSH themes directory in one go: git clone "$ZSH_CUSTOM/themes/spaceship-prompt" -depth=1 Enter the following in to your terminal: git clone -depth=1 We need to install PowerLine fonts first. 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
0 Comments
Leave a Reply. |