

Turn your Mac into a web development machine
HOW TO USE BASH ON MAC HOW TO
If you are working on Windows, we suggest checking out this comment that was posted to GitHub that details how to make these instructions work for Windows machines. These instructions are primarily for Macs, but most of the instructions will work the same on a Linux computer.
HOW TO USE BASH ON MAC MAC OS
What you need to get started: a GitHub account and Mac OS X. (You don’t have to know how to code to post an issue, but you do need a GitHub account.) If you have an alternative way of doing any of these steps - or have ways to make this more efficient - please let us know by posting an issue here. This post is a tutorial meant to prepare people to work with 18F’s Website team.
HOW TO USE BASH ON MAC FOR MAC
For example, there are apps for using Git like GitHub for Mac and Windows, or Tower dozens of different text editors and competitors to GitHub like Bitbucket, or SourceForge. It is worth noting: There are many different ways to do each of these steps. Get Started With GitHub and the Terminal.Turn Your Mac Into a Web Development Machine.At the end of this post, you will know how to: Today you’ll learn how to make a blog post on the 18F blog.Įvery step will be illustrated with a helpful screenshot or animated GIF that shows you exactly what your screen should look like. We’re going to introduce you to GitHub, the command line (also called Terminal on OS X), and Markdown through a guided exercise. The team that runs the 18F website recently started writing down the tools and processes that we use to update the blog and the code that runs the site.īecause some of the people we hire have never used these tools before, this guide assumes you have no prior knowledge of them either.

We hire people from many different backgrounds and each new employee brings a different level of comfort with the specific tools we use on our various projects. If you’ve never used GitHub before, it can be a little intimidating, so we’d like to share the tutorial our own new employees use when they start with 18F. We do this so that the public can see the code we’re working on, offer feedback, and copy or fork that code for their own projects. One of the ways we do that is by building all of our products-from our blog and our dashboard to a new website for the Peace Corps’ Let Girls Learn Initiative-using GitHub.

Newer versions are licensed under the GPLv3 license, while Apple still distributes a version licensed under GPLv2.We’ve written before how everything we do is open from day one. If you run bash -version, you’ll see that Catalina includes Bash 3.2.57 when Bash 5.0 is the latest version. Note that the version of Bash (Bourne Again SHell) included with macOS is still pretty outdated, however. Hold the Ctrl key, click your user account’s name in the left pane, and select “Advanced Options.”Ĭlick the “Login Shell” dropdown box and select “/bin/bash” to use Bash as your default shell or “/bin/zsh” to use Zsh as your default shell. Click the lock icon and enter your password. Head to System Preferences > Users & Groups on your Mac. You can also change this option graphically from System Preferences if you prefer. You can see a list of included shells you can select by running the following command: cat /etc/shells After you close the terminal window and reopen it, you’ll be using Zsh. Change the default shell back to Zsh by running this command: chsh -s /bin/zshĮnter your password when prompted.
