<?xml version="1.0" encoding="utf-8" standalone="yes"?><?xml-stylesheet href="/rss.xsl" type="text/xsl" ?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Dotfiles | Bacardi55&#39;s Web Cave</title>
    <link>https://bacardi55.io/tags/dotfiles/</link>
    <description>Recent content in Dotfiles on Bacardi55&#39;s Web Cave</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <managingEditor>bac@rdi55.pl (bacardi55)</managingEditor>
    <webMaster>bac@rdi55.pl (bacardi55)</webMaster>
    <copyright>2010-2025 bacardi55</copyright>
    <lastBuildDate>Wed, 18 Mar 2020 00:00:00 +0100</lastBuildDate>
    <atom:link href="https://bacardi55.io/tags/dotfiles/index.xml" rel="self" type="application/rss+xml" />
    <item>
      
      <title>Managing my dotfiles with Yadm</title><link>https://bacardi55.io/2020/03/18/managing-my-dotfiles-with-yadm/</link><pubDate>Wed, 18 Mar 2020 00:00:00 +0100</pubDate><author>bac@rdi55.pl (bacardi55)</author><guid>https://bacardi55.io/2020/03/18/managing-my-dotfiles-with-yadm/</guid><description>&lt;p&gt;This will be a very short post about &lt;a href=&#34;https://yadm.io/&#34;&gt;Yadm&lt;/a&gt;, « Yet another dotfiles manager», that shines by its simplicity and efficiency :-).&#xA;I decided a while ago to start managing my dotfiles with Yadm so I can share them between my main laptop and a recovery machine (a &lt;a href=&#34;https://www.pine64.org/pinebook/&#34;&gt;Pinebook&lt;/a&gt;). A very good idea in my opinion as it really speed up my &lt;a href=&#34;https://bacardi55.io/posts/2020/03/15/buying-linux-laptop/&#34;&gt;new laptop&lt;/a&gt; setup :).&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-would-one-need-a-dotfiles-manager&#34;&gt;Why would one need a dotfiles manager?&lt;/h2&gt;&#xA;&lt;p&gt;Idea is simple, to version and backup them, to deploy them on new&#xA;machine quickly, etc&amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;You could also simply do it via git manually (what Yadm does behind thescene anyway) or use tools to do so. There are many other alternatives&#xA;available or specific workflow / bash script, but I found Yadm so easy&#xA;to use (if you already know git commands) that I quickly loved it :)&lt;/p&gt;&#xA;&lt;h2 id=&#34;yadm-easy-to-learn-and-efficient-dotfiles-manager&#34;&gt;Yadm - easy to learn and efficient dotfiles manager&lt;/h2&gt;&#xA;&lt;p&gt;I find Yadm to be a very easy to use yet very powerful dotfile manager.&#xA;With it, I can easily manage files that will be reuse all machines, but&#xA;as well defining some configuration file variation for specific OS (eg:&#xA;linux) or for specific machine / hostname.&lt;/p&gt;&#xA;&lt;h3 id=&#34;installation&#34;&gt;Installation&lt;/h3&gt;&#xA;&lt;p&gt;See the &lt;a href=&#34;https://yadm.io/docs/install&#34;&gt;installation page&lt;/a&gt; for instruction. Most probably, there is a package available for your distribution.&lt;/p&gt;&#xA;&lt;h3 id=&#34;usage&#34;&gt;Usage&lt;/h3&gt;&#xA;&lt;p&gt;First, you need to initialize your repo, like you would do with git¹:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    yadm init&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    yadm add &amp;lt;files&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    yadm commit&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    yadm remote add origin &amp;lt;url&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    yadm push -u origin master&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;For more usage information, see the &lt;a href=&#34;https://yadm.io/&#34;&gt;yadm&lt;/a&gt; website!&lt;/p&gt;&#xA;&lt;p&gt;If you want to have specific version of config files for a machine, just&#xA;create the config file with the following name:&#xA;&lt;code&gt;&amp;lt;nameOfFile&amp;gt;##OS.HOSTNAME&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;For example, you can see my&#xA;&lt;a href=&#34;https://gitlab.com/bacardi55/yadm-dotfiles&#34;&gt;dotfiles on gitlab&lt;/a&gt;, with&#xA;some specific config file for my&#xA;&lt;a href=&#34;https://www.pine64.org/pinebook/&#34;&gt;Pinebook&lt;/a&gt; running&#xA;&lt;a href=&#34;https://www.archlinux.org/&#34;&gt;Archlinux&lt;/a&gt; (without X by default) like&#xA;&lt;code&gt;.asoundrc##Linux.raven&lt;/code&gt; or &lt;code&gt;.xinitrc##Linux.raven&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then, Yadm will automatically create a symbolic link between the&#xA;specific config file for this machine. Eg: if you have a&#xA;&lt;code&gt;.vimrc##Linux.raven&lt;/code&gt; and a &lt;code&gt;.vimrc&lt;/code&gt;, on the machine named &amp;ldquo;raven&amp;rdquo;&#xA;running linux, it will create a symbolic link &lt;code&gt;~/.vimrc&lt;/code&gt; to&#xA;&lt;code&gt;~/.vimrc##Linux.raven&lt;/code&gt;. On other machine, it will use the default&#xA;&lt;code&gt;.vimrc&lt;/code&gt; file of my Yadm repository&amp;hellip; Pretty neat, right? :)&lt;/p&gt;&#xA;&lt;p&gt;Look at the &lt;a href=&#34;https://yadm.io/docs/alternates#&#34;&gt;documentation on&#xA;alternate files&lt;/a&gt; for more explaination :)&lt;/p&gt;&#xA;&lt;p&gt;I haven&amp;rsquo;t explored encryption yet as I&amp;rsquo;m paranoid and didn&amp;rsquo;t take the&#xA;time to look at how it works yet, that&amp;rsquo;s why you see a &lt;code&gt;.neomuttrc.tpl&lt;/code&gt;&#xA;instead of a normal &lt;code&gt;.neomuttrc&lt;/code&gt; with data encrypted (as well as because&#xA;I don&amp;rsquo;t want to show some configuration/ports in there^^).&lt;/p&gt;&#xA;&lt;p&gt;¹: If you are not familiar with git commands and concepts, I suggest you to read about it first before playing with Yadm^^.&lt;/p&gt;&#xA;</description></item>
  </channel>
</rss>
