Tech Reflect
  • Home
  • About This Site
  • Contact me
  • Search Icon
Sharing shell settings between Macs

Sharing shell settings between Macs

2017-04-12

This one is a bit crazy, so be careful. Read on if you fall into most of these categories:

  • You have multiple Macs
  • You frequently make changes to .bash_profile (or equivalent)
  • You’d love to have your shell history shared between machines for tab completion
  • You have an iCloud account shared on all your Macs
  • You like to live a little dangerously

Iʼve been running this way over 10 years and have never run into problems, other than syncing sometimes being sluggish. However, most of the time it’s so fast that it’s amazing.

If your shell files get messed up during the setup and you can’t get to a command prompt, you can do the following:

  • Launch Terminal
  • Go to Preferences -> General
  • Change the “Shells open with”setting to specify a complete path.
  • Use a different shell path like /bin/tcsh or /bin/zsh.
  • Then, fix the problem if you know what it is or restore your shell files from backup

Since anyone wanting to try this is probably super advanced, I will provide a terse description rather than a beginner’s guide.

  • Back up any shell files you plan to sync
  • Move your shell files, such as .bash_profile and/or .bash_history to a new folder on iCloud Drive
  • Symlink from your home directory to the shell file(s) you moved
  • Repeat the symlink on all your Macs

Now, whenever you make a change to your shell config file or type any command, it’ll show up just as if you did the same on any of your other machines.

Related posts:

Sharing scripts between machines
Many-to-many screensharing
Multiple Macs, one location for screenshots


geeky, macOS tips

Post navigation

NEXT
Use more emojis at work
PREVIOUS
More efficient process killing
Comments are closed.

Get Monthly Updates

Recent Posts

  • Inserting random email sigs in Mail on iOS
  • Keep Instagram open to finish posting…
  • How I predicted the rise of Twitter, barely used it, and amassed 35,000 followers
  • Apple Books 2022, in pictures
  • Killing one bird with two-and-a-half stones in Mac OS X Mail

Categories

  • analog (1)
  • apple career (12)
  • apple inside (19)
  • apple stories (20)
  • bertrand serlet (3)
  • bugs (3)
  • essays (15)
  • geeky (21)
  • interviews (4)
  • iOS tips (4)
  • Mac OS X (7)
  • macOS tips (36)
  • personal (8)
  • predictions (1)
  • products (5)
  • prototypes (6)
  • scott forstall (7)
  • scripting (2)
  • siri (2)
  • steve jobs (16)
  • tim cook (1)
  • workplace (15)

Get Monthly Updates

About cricket


Me with Guiness the owl

25 years in tech. I like to write manifestos. I like to offer interesting tips. I like making fun of things. Everyone copes differently.

My Other Blogs

  • Free Range Parrots
  • Plucky Tree (personal)
© 2025   All Rights Reserved.