<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.8.1">Jekyll</generator><link href="https://codeolsen.com/atom.xml" rel="self" type="application/atom+xml" /><link href="https://codeolsen.com/" rel="alternate" type="text/html" /><updated>2018-05-11T20:09:25+00:00</updated><id>https://codeolsen.com/</id><title type="html">codeolsen.com</title><subtitle>Tutorials, thoughts, and tips on life in code land.</subtitle><author><name>Cody Olsen</name></author><entry><title type="html">Sync All The Preferences!</title><link href="https://codeolsen.com/productivity/tools/iterm-sync-dropbox/" rel="alternate" type="text/html" title="Sync All The Preferences!" /><published>2018-05-03T22:56:52+00:00</published><updated>2018-05-03T22:56:52+00:00</updated><id>https://codeolsen.com/productivity/tools/iterm-sync-dropbox</id><content type="html" xml:base="https://codeolsen.com/productivity/tools/iterm-sync-dropbox/">&lt;p&gt;Believe it or not, I kind of miss the active directory network login of the labs at my university. On a good day you could log into any machine in the building and receive the exact same workstation instance. All your precious configs would be active: terminal color, bash_profile, and desktop background (Unless you forgot to logout. It was a moral code not to mess with open accounts… &lt;a href=&quot;https://carboncostume.com/wordpress/wp-content/uploads/2013/02/richardsimmons.jpg&quot;&gt;except backgrounds&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Most new modern applications will directly interface with cloud clients like &lt;a href=&quot;http://www.dropbox.com/&quot;&gt;Dropbox&lt;/a&gt; and iCloud to keep preferences synced. However, some of the more seasoned but in no way outdated apps still use local preferences storage. Using Dropbox and iCloud folder paths, you can keep your local preferences synced and safe in the cloud.&lt;/p&gt;

&lt;p&gt;I’ll admit that I don’t jump machines a lot. Mostly just between personal and work laptops. However, I do have config options that are a part of my workflow that I have had for YEARS because my transition between one machine to another is a simple filepath. You can have my iTerm prefs when you pry them from my cold dead dropbox.&lt;/p&gt;

&lt;p class=&quot;notice&quot;&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; - Sync your application preferences using cloud client folders for seamless env on multiple machines.&lt;/p&gt;

&lt;h2 id=&quot;dropbox-or-icloud&quot;&gt;Dropbox or iCloud?&lt;/h2&gt;
&lt;p&gt;Probably dropbox. Cross platform, and much less likely to have file structure issues when apple pokes it’s fingers in the brownies and moves things around.&lt;/p&gt;

&lt;p&gt;Thus said it is doable. Remembering that &lt;code class=&quot;highlighter-rouge&quot;&gt;~&lt;/code&gt; is an alias for your home directory, if you’d like to use iCloud for your sync folder the current path as of writing is:&lt;/p&gt;

&lt;p&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;~/Library/Mobile\ Documents/com~apple~CloudDocs&lt;/code&gt;+&lt;code class=&quot;highlighter-rouge&quot;&gt;/whatever-folder&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Dropbox is whatever you’d like it to be when you configure the desktop application. Mine is the default:&lt;/p&gt;

&lt;p&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;~/Dropbox&lt;/code&gt;+&lt;code class=&quot;highlighter-rouge&quot;&gt;/settings/APPLICATION_NAME&lt;/code&gt;&lt;/p&gt;

&lt;p class=&quot;notice--warning&quot;&gt;&lt;strong&gt;Check your sync folders first!&lt;/strong&gt; You don’t want to overwrite something that already took up residence in that folder path!&lt;/p&gt;

&lt;h1 id=&quot;examples&quot;&gt;Examples&lt;/h1&gt;

&lt;h3 id=&quot;iterm&quot;&gt;iTerm&lt;/h3&gt;

&lt;p&gt;iTerm loads your preferences at open, and saves at close if you check the option to do so. Meaning that if I modify keybindings or profiles at work, when I go home those changes are propagated to my personal machine. This brings me great joy.&lt;/p&gt;

&lt;figure&gt;
    &lt;img src=&quot;/assets/posts/2018-05-03-sync-all-the-preferences/iterm-sync.png&quot; alt=&quot;screenshot of iterm preferences&quot; /&gt;
    &lt;figcaption&gt;Sync iTerm!&lt;/figcaption&gt;
  &lt;/figure&gt;

&lt;h3 id=&quot;alfred&quot;&gt;Alfred&lt;/h3&gt;
&lt;p&gt;Same thing with &lt;a href=&quot;https://www.alfredapp.com/&quot;&gt;Alfred&lt;/a&gt;. It takes a bit of tweak and tinker to really get full value from Alfred. However, once you have it configured to your liking, you’ll ditch OS X spotlight all together and navigate your OS and Apps with the skills of &lt;a href=&quot;https://www.youtube.com/watch?v=AJRmY9VXf1g&quot;&gt;Alex Rogan&lt;/a&gt;. Loosing my Alfred workflows would be a huge blow to my heart. Synced, they shall be.&lt;/p&gt;

&lt;figure&gt;
    &lt;img src=&quot;/assets/posts/2018-05-03-sync-all-the-preferences/alfred-sync.png&quot; alt=&quot;screenshot of alfred preferences&quot; /&gt;
    &lt;figcaption&gt;Sync Alfred!&lt;/figcaption&gt;
  &lt;/figure&gt;

&lt;h2 id=&quot;and-more&quot;&gt;and more!&lt;/h2&gt;
&lt;p&gt;I’ll update the list as needed or based on input from the comments. I also want to write a post on how to use dropbox to make &lt;code class=&quot;highlighter-rouge&quot;&gt;.bash_profile&lt;/code&gt; less of a headache. Stay tuned!&lt;/p&gt;</content><author><name>Cody Olsen</name></author><summary type="html">Believe it or not, I kind of miss the active directory network login of the labs at my university. On a good day you could log into any machine in the building and receive the exact same workstation instance. All your precious configs would be active: terminal color, bash_profile, and desktop background (Unless you forgot to logout. It was a moral code not to mess with open accounts… except backgrounds).</summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://codeolsen.com/assets/posts/2018-05-03-sync-all-the-preferences/hero.png" /></entry></feed>