Sharing scripts between machines

Sharing scripts between machines

If you use multiple Macs, you may find yourself writing and editing scripts that could be useful on all of your machines. This is another potential use of iCloud Drive. Here’s what I do:

  • I created a “bin” folder at the top level of my iCloud Drive
  • I set up a symlink from my home directory to iCloud Drive on each of my machines using the same iCloud account:
ln -s /Users/admin/Library/Mobile\ Documents/com~apple~CloudDocs/bin ~/bin 
  • I set up my shell config file to add ~/bin to the PATH variable.
export PATH=~/bin:/usr/bin:/bin:$PATH
  • Start writing and editing scripts that are quickly available on all machines!

Related posts:

Many-to-many screensharing
Sharing shell settings between Macs
Multiple Macs, one location for screenshots

Multiple Macs, one location for screenshots

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