How to Set Nano as the Default Editor for Git on Your Mac
Matt Cone August 15, 2021
If you’re a developer who uses git for version control on your Mac, you’ll want to set a default text editor for git. There are certain situations when git opens a text editor for you — for example, when you need to rebase or resolve merge conflicts. By default, git is set to use vim, but you can easily change git to use another text editor. Nano is a simple text editor and it makes a great choice for beginners or anyone who prefers a simpler text editor when working with git.
How to Tell What Shell Your Mac is Using
Matt Cone January 22, 2021
Every Mac comes with a Unix shell that provides a command line interface. Macs running macOS 10.15 and later use Zsh by default. Before that, Macs used the Bash shell by default. Of course, no matter what version of macOS you’re using, you can change the shell your Mac is using. What shell is your Mac using? There’s an easy way to tell — here’s how. Open the Terminal application on your Mac.
How to Enable Git Tab Autocomplete on Your Mac
Matt Cone January 21, 2021
The git version control system is a popular choice among developers when working with source code. Git is automatically installed on every Mac by default, but you might want to enable the git tab autocomplete feature to help you automatically complete commands and branch names. This feature is a must-have if you work with long branch names. For example, if you typed git checkout ma and then pressed the Tab key, git tab autocomplete would automatically fill in the rest of the branch name, like this: git checkout main.
How to Set Bash as the Default Shell on Mac
Matt Cone January 15, 2021
Every new Mac uses the Z shell (Zsh) by default, but you can quickly and easily switch the default shell back to Bash. There are several reasons you might want to do this. For example, you may need to be using the bash shell to execute bash scripts on a Mac. Tip: Not sure what shell your Mac is using? You can check using the instructions in How to Tell What Shell Your Mac is Using.
How to Make a Bash Script Executable on a Mac
Matt Cone January 9, 2021
Bash scripts are files containing code that tell your computer to do something. They’re a staple of the Linux world, and there are thousands of them freely available on the internet. With a bit of tweaking, you can use these scripts on your Mac, too. In this tutorial, you’ll learn how to make a bash script executable on a Mac. Here’s how to make a bash script executable on a Mac:
Setting Up an iOS Simulator on Your Mac
Matt Cone January 1, 2013
Web developers know it’s important to test their websites on every web browser and device possible. And with the growing popularity of the iPhone, iPad, and iPod Touch, it’s only natural that they’ll also want to test their websites on all of those devices. But short of stocking up on a bunch of Apple products, how can developers preview their websites in iOS? Actually, it’s easy. Anybody can do it by installing Apple’s iOS simulator on their Mac for free.
Using CPAN to Extend Perl on Mac OS X
Richard Myers June 6, 2012
So you read Getting Started with Perl on Mac OS X and you’re starting to write little Perl scripts to get things done. You learned a few things along the way, and even though you’ve surely hit some speed bumps, you’re still rearing to go. Today, let’s talk about extending your abilities by installing some modules from CPAN. What is CPAN? CPAN is the “Comprehensive Perl Archive Network” - a collection of over one hundred thousand Perl modules ready to be installed and used by you to extend your Perl chops.
Getting Started with Perl on Mac OS X
Richard Myers April 25, 2012
Perl is a widely used programming language developed by Larry Wall in the late 1980’s. Since being originally written as a scripting language to assist in system administration tasks, it has taken off as a popular language for doing everything from low-level systems programming to website scripting. If you have ever thought about getting into programming on your Mac, Perl is a great place to start! Preparing for Perl All you will need for this primer is a text editor, the terminal, and Perl (of course!
Reposition Windows for Multiple Monitors with AppleScript
Richard Myers December 19, 2011
If you frequently switch between different displays, you know organizing your windows when switching displays can be a real pain. I use my MacBook Pro frequently by itself, and I also have a 20" external display on my desk at home. Additionally, I have a weird affliction of window placement OCD. Admiring Stay, but not prepared to spend $15, I wrote the following AppleScript that will resize and organize my windows when I switch my display configuration.
Create Sitemaps with SiteOrbiter
Janet Fouts February 6, 2008
Websites are getting larger and larger, and keeping track of them as they evolve can be a hassle. If you’re a web developer, you’ll want to create what’s called a site map, a special file that lists all of the pages of your website in an hierarchical order. This file can be submitted to search engines to help them index your website. But how the heck are you supposed to create one on your Mac?