<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>glow.li: Bash</title>
        <description>A blog by glow.</description>
        <link>https://glow.li/tags/bash.xml</link>
        <atom:link href="https://glow.li/tags/bash.xml" rel="self" type="application/rss+xml"/>
        <generator>Glow.li Builder</generator>
            <item>
        <title>Tmux-text-macros: Emojis for your Tmux</title>
        <description>&lt;p&gt;&lt;a href="https://glow.li/loop/tmux-text-macros.mp4/"&gt;        &lt;video class="video-autoplay" autoplay loop muted poster="https://glow.li/media/videos/previews/tmux-text-macros.webp?chash=Iebu88bdc7"&gt;        &lt;source src="https://glow.li/media/videos/tmux-text-macros.mp4" type="video/mp4"&gt;        Click to view the video.        &lt;/video&gt;        &lt;/a&gt;
Did you ever want emojis in your terminal? Do you find yourself constantly writing the same text snippets?&lt;/p&gt;
&lt;!--more--&gt;
&lt;p&gt;With Tmux-text-macros you can easily save and recall these inside Tmux. Powered by &lt;a href="https://github.com/junegunn/fzf"&gt;fzf&lt;/a&gt; the search allows you to easily search macros by content or description. It comes with all emojis, box-drawing characters and block characters, as well as a few emoticons.&lt;/p&gt;
&lt;p&gt;Now I can use all the emojis when writing this blog. 🐦🐻 🕴💀&lt;/p&gt;
&lt;h3 id="Download" name="Download"&gt;&lt;a class="hash-link" href="#Download"&gt;Download&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Repository: &lt;a href="https://github.com/Neo-Oli/tmux-text-macros"&gt;https://github.com/Neo-Oli/tmux-text-macros&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="Requirements" name="Requirements"&gt;&lt;a class="hash-link" href="#Requirements"&gt;Requirements&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/junegunn/fzf"&gt;fzf&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/junegunn/fzf/blob/master/bin/fzf-tmux"&gt;fzf-tmux&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="Installation" name="Installation"&gt;&lt;a class="hash-link" href="#Installation"&gt;Installation&lt;/a&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;clone repository to &lt;code&gt;~/.tmux/plugins/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;add &lt;code&gt;run-shell ~/.tmux/plugins/tmux-text-macros/tmux-text-macros.tmux&lt;/code&gt; to your &lt;code&gt;~/.tmux.conf&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;run &lt;code&gt;tmux source ~/.tmux.conf&lt;/code&gt; to enable the changes&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="Configuration" name="Configuration"&gt;&lt;a class="hash-link" href="#Configuration"&gt;Configuration&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;You can add your own custom macros to &lt;code&gt;~/.tmux/custom-macros&lt;/code&gt;. You can use the &lt;code&gt;custom-macros&lt;/code&gt; file as a template.&lt;/p&gt;
&lt;p&gt;If you want to disable all the default macros put &lt;code&gt;set -g @load-default-macros off&lt;/code&gt; before loading the plugin in your &lt;code&gt;.tmux.conf&lt;/code&gt;&lt;/p&gt;
&lt;h3 id="Usage" name="Usage"&gt;&lt;a class="hash-link" href="#Usage"&gt;Usage&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Press &lt;code&gt;Prefix e&lt;/code&gt; (normally &lt;code&gt;Ctrl+b e&lt;/code&gt;) and choose a string by choosing it with the arrow keys or by entering a search string and press enter.&lt;/p&gt;</description>
    <pubDate>Mon, 23 Apr 2018 00:00:00 +0000</pubDate>
    <link>https://glow.li/posts/tmux-text-macros/</link>
    <guid isPermaLink="false">1524441600</guid>
</item>

<item>
        <title>Crontroll: A cronjob controller</title>
        <description>&lt;p&gt;Enabling and disabling cronjobs is so annoying and really hard to do from a script. That's why I wrote a small shell script called &lt;a href="https://github.com/Neo-Oli/crontroll"&gt;crontroll&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id="Examples" name="Examples"&gt;&lt;a class="hash-link" href="#Examples"&gt;Examples&lt;/a&gt;&lt;/h3&gt;
&lt;pre&gt;
&lt;code&gt;$ crontroll status updatedb
enabled: updatedb; 0 3 * * * updatedb

$ crontroll disable updatedb

$ crontroll status updatedb
disabled: updatedb; 0 3 * * * updatedb

$ crontroll enable updatedb

$ crontroll list
&lt;span class="color2"&gt;[x] apt-cron&lt;/span&gt;
&lt;span class="color7"&gt;[ ] at&lt;/span&gt;
&lt;span class="color2"&gt;[x] backup&lt;/span&gt;
&lt;span class="color2"&gt;[x] greg&lt;/span&gt;
&lt;span class="color7"&gt;[ ] mail&lt;/span&gt;
&lt;span class="color2"&gt;[x] tracking&lt;/span&gt;
&lt;span class="color2"&gt;[x] updatedb&lt;/span&gt;
&lt;span class="color2"&gt;[x] vdirsyncer&lt;/span&gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;h3 id="Setting+up+cronjobs" name="Setting+up+cronjobs"&gt;&lt;a class="hash-link" href="#Setting+up+cronjobs"&gt;Setting up cronjobs&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Instead of writing directly to your crontab file, create a file per cronjob in &lt;code&gt;~/.cron&lt;/code&gt;.&lt;/p&gt;
&lt;h4 id="Example" name="Example"&gt;&lt;a class="hash-link" href="#Example"&gt;Example&lt;/a&gt;&lt;/h4&gt;
&lt;pre&gt;&lt;code&gt;~/.cron $ cat updatedb
0 3 * * * updatedb -U ~/drive&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then run &lt;code&gt;crontroll reload&lt;/code&gt; to enable your new cronjob.&lt;/p&gt;
&lt;h3 id="Download" name="Download"&gt;&lt;a class="hash-link" href="#Download"&gt;Download&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Repository: &lt;a href="https://github.com/Neo-Oli/crontroll"&gt;https://github.com/Neo-Oli/crontroll&lt;/a&gt;&lt;/p&gt;</description>
    <pubDate>Tue, 20 Feb 2018 00:00:00 +0000</pubDate>
    <link>https://glow.li/posts/crontroll/</link>
    <guid isPermaLink="false">1519084800</guid>
</item>

    </channel>
</rss>

