<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Manoel Thiago Nogueira</title>
    <description>The latest articles on Forem by Manoel Thiago Nogueira (@manoeltlobo).</description>
    <link>https://forem.com/manoeltlobo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F37687%2F720f0896-c121-4a8e-92b7-2f2dceaac5c2.JPG</url>
      <title>Forem: Manoel Thiago Nogueira</title>
      <link>https://forem.com/manoeltlobo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/manoeltlobo"/>
    <language>en</language>
    <item>
      <title>Failure &amp; lessons learned</title>
      <dc:creator>Manoel Thiago Nogueira</dc:creator>
      <pubDate>Thu, 01 Aug 2019 12:32:46 +0000</pubDate>
      <link>https://forem.com/manoeltlobo/failure-lessons-learned-he6</link>
      <guid>https://forem.com/manoeltlobo/failure-lessons-learned-he6</guid>
      <description>&lt;p&gt;I am incredibly self-critic. Frequently, it's not in the way of being perfectionist, but in creating anxiety and discomfort, and plunging me into procrastination zone. This means, in some measure, I don't deal too well with failures. But I am starting to handle it better.&lt;/p&gt;

&lt;p&gt;Recently, the Gatsby Team &lt;a href="https://www.gatsbyjs.org/blog/2019-07-03-announcing-stable-release-gatsby-themes/"&gt;announced&lt;/a&gt; the release of themes. They also made a &lt;a href="https://www.gatsbyjs.org/blog/2019-07-15-theme-jam-contest/"&gt;contest&lt;/a&gt; to create a theme, with rewards for participants and a great prize for the winning creators.&lt;/p&gt;

&lt;p&gt;I had a concept that I thought was interesting enough, so I took some time to try my hand on themes. Fast forward to now: I wasn't able to complete the theme in time, so I won't be participating.&lt;/p&gt;

&lt;p&gt;In other times, I would probably be grumpy. I caught this experience, however, decided to look from another angle, and take into account not what I lost, but what I gained with the experience:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I have a concept that I still think is interesting and useful, so I will keep working on it&lt;/li&gt;
&lt;li&gt;Now I don't have a time constraint, which will allow me to refine better the idea and the technical aspects of the implementation.&lt;/li&gt;
&lt;li&gt;I discovered some interesting things in related subjects (CSS! Accessibility!)&lt;/li&gt;
&lt;li&gt;I learned a lot while diving on some behind the scenes of the Gatsby API&lt;/li&gt;
&lt;li&gt;Spoiler alert, it will become a blog post&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I also considered that it was not only my fault (though I maybe could have better allocated my time), but sometimes life happens: I am married, have twin baby daughters (that eventually wake up in the middle of the night), and had a hectic month on my job. In the end, I was quite happy with how the general outcome of all these things ended balanced, even if I had to choose to not dedicate so much to this side project.&lt;/p&gt;

&lt;p&gt;I expect to keep this view in mind the next time something doesn't end so well: I still learned a lot, I could achieve other things. Maybe I shouldn't be so harsh on myself. Hope you can be more forgiving with yourself too.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This post was originally published at my personal blog, manoel.tech&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>mentalhealth</category>
    </item>
    <item>
      <title>Learn in public &amp; save the civilization</title>
      <dc:creator>Manoel Thiago Nogueira</dc:creator>
      <pubDate>Tue, 16 Jul 2019 13:33:40 +0000</pubDate>
      <link>https://forem.com/manoeltlobo/learn-in-public-save-the-civilization-2j37</link>
      <guid>https://forem.com/manoeltlobo/learn-in-public-save-the-civilization-2j37</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Or 'A slightly clickbaity title to something indeed important'.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;One of the reasons to create this habit of blogging is to adopt the habit of learning in public. Though the concept is not exactly new, it was beautifully presented by &lt;a href="https://twitter.com/swyx"&gt;Shawn Wang&lt;/a&gt; on &lt;a href="https://www.swyx.io/writing/learn-in-public/"&gt;one of his blog posts&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This habit on itself is worth an entire post (or a series, even!), but I'd like to address some side effect of it that I realized recently. After watching the video of a talk by &lt;a href="https://twitter.com/Jonathan_Blow"&gt;Johnathan Blow&lt;/a&gt;&lt;sup id="fnref1"&gt;1&lt;/sup&gt;, "&lt;a href="https://youtu.be/pW-SOdj4Kkk"&gt;Preventing the Collapse of Civilization&lt;/a&gt;", I was deeply intrigued (and somewhat scared) by its premise.&lt;/p&gt;

&lt;p&gt;During his speech, Blow talks about many technologies and apparatus developed by past civilizations. Marvels of knowledge and craftsmanship that intrigue us even with our relative technical advancement. Some items that are unattainable by us today, even with our compendium of brilliant minds and machines.&lt;/p&gt;

&lt;p&gt;The main reason that I could grasp for this loss of knowledge is none other than the difficulty to pass forward the said knowledge. How hard it is to explain to the future generations the concepts and context in which we based our methods and achievements! Without this sharing, the knowledge ends up being siloed. The technologies and its technical concepts become stale and wither. Nonetheless, we could use a simple command in our terminals and then everything will work fine! Except when it won't.&lt;/p&gt;

&lt;p&gt;All our toolings depend on a series of abstractions. That series of abstractions could be followed to an atomic level for what it is worth. And it is ok to use these tools, they make a big difference in our daily lives. But these are implementations on a lot of layers that can be hidden from view. What happens when the tool fails or we need something slightly different from what is provided out-of-the-box?&lt;/p&gt;

&lt;p&gt;When we don't know how something works, and we need to learn its underlying structure to solve the problems, we end up learning a lot. And if we share what we have learned, smaller and simple as it may look, even if it is for our future reference, we unshackle this information and provide a backup to the entire world (thanks, internet). We allow that wisdom to flourish and be remixed, and to serve a lot more than only solving your problem, being stuck in your head until you forget it.&lt;/p&gt;

&lt;p&gt;We have this current blessing&lt;sup id="fnref2"&gt;2&lt;/sup&gt; of being able to look for whatever we want, almost anyone, anywhere, just using our fingertips - literally. We can reach the latest academic discoveries about a disease, a material or many more from this world - or even others. And we can find out how to fix that snarky webpack config with the same ease.&lt;/p&gt;

&lt;p&gt;How about we start sharing and discussing what we know? We may end up saving our civilization.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This post was originally published at my personal blog, &lt;a href="https://manoel.tech"&gt;manoel.tech&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;ol&gt;

&lt;li id="fn1"&gt;
&lt;p&gt;Have you ever played Braid? Whatever is your response, this game deserves to be (re)played. ↩&lt;/p&gt;
&lt;/li&gt;

&lt;li id="fn2"&gt;
&lt;p&gt;It may also be a curse, but it is a talk for another occasion. ↩&lt;/p&gt;
&lt;/li&gt;

&lt;/ol&gt;

</description>
      <category>meta</category>
    </item>
    <item>
      <title>My desktop setup - Part 3: The VS Code</title>
      <dc:creator>Manoel Thiago Nogueira</dc:creator>
      <pubDate>Mon, 08 Jul 2019 18:18:39 +0000</pubDate>
      <link>https://forem.com/manoeltlobo/my-desktop-setup-part-3-the-vs-code-5ffc</link>
      <guid>https://forem.com/manoeltlobo/my-desktop-setup-part-3-the-vs-code-5ffc</guid>
      <description>&lt;p&gt;I already discussed at length about my &lt;a href="https://dev.to/01-my-desktop-setup"&gt;OS look&lt;/a&gt; and my &lt;a href="https://dev.to/02-my-desktop-setup-2"&gt;terminal configuration&lt;/a&gt;. Now it is time to talk about my main daily companion, the VS Code editor.&lt;/p&gt;




&lt;p&gt;When I first started to learn how to do web pages, I used the Notepad from Windows to edit HTML code (good old times!). When I first saw Macromedia Dreamweaver (now an Adobe product) and had the chance to work with syntax highlighting, auto-completion, file management and a lot of snippets, my then 15-years-old mind stood in awe.&lt;/p&gt;

&lt;p&gt;Fast forward almost two decades&lt;sup id="fnref1"&gt;1&lt;/sup&gt;. I've spent this time going in and out of the dev world. Tried full-fledged IDEs (Eclipse, NetBeans), light-weight editors (Sublime), sheer minimalism (Vim). But I believe Microsoft's Visual Studio Code has hit a sweet spot for me.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--P2Z_aeYS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/f3u9u4lv7xo99wpxt6n1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--P2Z_aeYS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/f3u9u4lv7xo99wpxt6n1.png" alt="The Visual Studio Code editor with the Night Owl theme"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Themes
&lt;/h2&gt;

&lt;p&gt;The first theme which captured my attention was Wes Bos' Cobalt2. It is a Nice balance between shades of blue and yellow, pretty comfortable for continuous usage. Recently, I have also been using Sarah Drasner's Night Owl. Besides being absolutely gorgeous, it also provides a light version, considerably useful for when the room is extremely sunbathed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fonts
&lt;/h2&gt;

&lt;p&gt;I love ligatures. They allow me to reduce the cognitive load when looking at a symbol instead of a sequence of characters which must be read sequentially have a special meaning&lt;sup id="fnref2"&gt;2&lt;/sup&gt;. Being someone who is quite financially spartan, I searched for good free alternatives.&lt;/p&gt;

&lt;p&gt;My main contenders are Space Mono and Fira Code. It is interesting to select the Nerd Fonts patched version, which includes glyphs to decorate the command line and to use in your daily tasks with fonts, glyphs and icons. The fonts are available at the &lt;a href="//nerdfonts.com"&gt;Nerd Fonts site&lt;/a&gt; or at the &lt;a href="https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/"&gt;GitHub repo&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Another alternative, quite new actually, is the &lt;a href="https://rubjo.github.io/victor-mono/"&gt;Victor Mono&lt;/a&gt; font. It provides a set of cursive-like italics, which may add some more flair to your code, if it is for your liking. It may download for free, but if you mean to use it, a donation to its creator is a kind gesture for those who can afford it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Extensions
&lt;/h2&gt;

&lt;p&gt;Some extensions are useful if you work with a specific tool or language, but these are some wonderful ones that are quasi-content-agnostic:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2"&gt;Bracket Pair Colorizer 2&lt;/a&gt;: for when you don't know what is inside of what;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://marketplace.visualstudio.com/items?itemName=naumovs.color-highlight"&gt;Color Highlight&lt;/a&gt;: See if #068910 is the green you are thinking - directly in your code, as you type;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory"&gt;Git History&lt;/a&gt;, &lt;a href="https://marketplace.visualstudio.com/items?itemName=lamartire.git-indicators"&gt;Git Indicators&lt;/a&gt; &amp;amp; &lt;a href="https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens"&gt;GitLens&lt;/a&gt;: if you use git, you can cover your bases with these;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://marketplace.visualstudio.com/items?itemName=pnp.polacode"&gt;Polacode&lt;/a&gt;: When the code is so beautiful that it must be shared with the world in a perfectly arranged frame;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync"&gt;Settings Sync&lt;/a&gt;: keep your doubts away from which setting to choose in each of your different computers - by making them the same;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://marketplace.visualstudio.com/items?itemName=WakaTime.vscode-wakatime"&gt;WakaTime&lt;/a&gt;: log where is your time going in your projects.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;And that's all folks! Thanks for reading!&lt;/p&gt;




&lt;ol&gt;

&lt;li id="fn1"&gt;
&lt;p&gt;"Time, Time, Time / See what's become of me" ↩&lt;/p&gt;
&lt;/li&gt;

&lt;li id="fn2"&gt;
&lt;p&gt;e.g. A "fat arrow" instead of an "equal followed by a greater than" ↩&lt;/p&gt;
&lt;/li&gt;

&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>My desktop setup - Part 2: The Z in the shell</title>
      <dc:creator>Manoel Thiago Nogueira</dc:creator>
      <pubDate>Mon, 01 Jul 2019 18:37:05 +0000</pubDate>
      <link>https://forem.com/manoeltlobo/my-desktop-setup-part-2-the-z-in-the-shell-3a2n</link>
      <guid>https://forem.com/manoeltlobo/my-desktop-setup-part-2-the-z-in-the-shell-3a2n</guid>
      <description>&lt;p&gt;On my &lt;a href="https://dev.to/manoeltlobo/my-desktop-setup-part-1-bn1"&gt;last post&lt;/a&gt;, I talked a bit about setting the OS appearance to my liking. Now, to the shell.&lt;/p&gt;

&lt;p&gt;For a few years, I used &lt;a href="https://fishshell.com" rel="noopener noreferrer"&gt;fish&lt;/a&gt; as my default shell. It was pretty user-friendly and easy to configure. But its syntax was not bash-compliant and I had to exercise my brain to put some workarounds to use tools that I needed to use frequently (and sometimes without having the same results).&lt;/p&gt;

&lt;p&gt;I tested Zsh previously, but only recently put the effort to set it in a way that kept me pleased and productive. Here go the steps to put together what I tried.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing Zsh
&lt;/h2&gt;

&lt;p&gt;To use Zsh in Ubuntu, you need to install it and set as your default shell:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;zsh
&lt;span class="nv"&gt;$ &lt;/span&gt;chsh &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;which zsh&lt;span class="si"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After these steps are complete, restart the user session to validate the change.&lt;/p&gt;

&lt;p&gt;The next time you open your terminal, you will be greeted with the configuration function for new users and may press 2 to accept the defaults for now. This shall show a slightly different prompt without much flair, but we will solve it next.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fcyvy30gmka5d3i4jn8dn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fcyvy30gmka5d3i4jn8dn.png" alt="The default zsh prompt look"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;h2&gt;
  
  
  The "Oh my!" effect
&lt;/h2&gt;

&lt;p&gt;Customizing the terminal can be a quite daunting task. Luckily, there are great tools that allow us to ease it a bit. My choice is the &lt;a href="https://ohmyz.sh" rel="noopener noreferrer"&gt;Oh My Zsh&lt;/a&gt; framework by Robbie Russell and contributors.&lt;/p&gt;

&lt;p&gt;To install it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;sh &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;You need &lt;code&gt;curl&lt;/code&gt; and &lt;code&gt;git&lt;/code&gt; installed, so &lt;code&gt;sudo apt install curl git&lt;/code&gt; in case they are not already in place.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fxa8tqq0wyayn44nef3s1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fxa8tqq0wyayn44nef3s1.png" alt="The zsh prompt immediately after installing Oh My Zsh"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;It is... different. We got the git status indicator, yay!. But not much attractive yet.&lt;/p&gt;

&lt;h3&gt;
  
  
  Theme
&lt;/h3&gt;

&lt;p&gt;The Oh My Zsh framework comes with a lot of themes, like one of my favourites, agnoster. To set one of these, you just need to edit the zshrc configuration file (&lt;code&gt;~/.zshrc&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;ZSH_THEME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"agnoster"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F1ghng9p2u05ilphr4ul0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F1ghng9p2u05ilphr4ul0.png" alt="The zsh prompt with the agnoster theme"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;Thou I find this theme quite eye-pleasing, I decided to use the &lt;code&gt;powerlevel9k&lt;/code&gt; one and pump it up a little to my preferences. It works in tandem with powerline-fonts to the visual niceties.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F9vgwrh2h16bd0vlzhldd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F9vgwrh2h16bd0vlzhldd.png" alt="The zsh prompt with the customized powerlevel9k theme"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;First, to install it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;powerline powerline-fonts
&lt;span class="nv"&gt;$ &lt;/span&gt;git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, edit the &lt;code&gt;~/.zshrc&lt;/code&gt; file and add a few more lines to adjust the theme:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Hide the user from the prompt&lt;/span&gt;
&lt;span class="nv"&gt;DEFAULT_USER&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$USER&lt;/span&gt;

&lt;span class="c"&gt;# Shorten the folder breadcrumbs&lt;/span&gt;
&lt;span class="c"&gt;# ~/my/extremely/long/fumbled/path becomes ~/my/e/l/f/path&lt;/span&gt;
&lt;span class="nv"&gt;POWERLEVEL9K_SHORTEN_DIR_LENGTH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1
&lt;span class="nv"&gt;POWERLEVEL9K_SHORTEN_DELIMITER&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;
&lt;span class="nv"&gt;POWERLEVEL9K_SHORTEN_STRATEGY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"truncate_from_right"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Shameless plug(ins)
&lt;/h3&gt;

&lt;p&gt;I must admit that I am slightly lazy, so I'd prefer that my tools do the work for me. In the terminal case (no pun intended), I want that it complete my sentences, remember what I typed earlier, show me if I am typing something wrong, and so on. For my better fortune, there are two plugins for that: &lt;a href="https://github.com/zsh-users/zsh-autosuggestions" rel="noopener noreferrer"&gt;zsh-autosuggestions&lt;/a&gt; and &lt;a href="https://github.com/zsh-users/zsh-syntax-highlighting" rel="noopener noreferrer"&gt;zsh-syntax-highlighting&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;To install them, clone their git repos into the plugins folder of Oh My Zsh:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;git clone https://github.com/zsh-users/zsh-autosuggestions &lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;ZSH_CUSTOM&lt;/span&gt;&lt;span class="k"&gt;:-&lt;/span&gt;&lt;span class="p"&gt;~/.oh-my-zsh/custom&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;/plugins/zsh-autosuggestions
&lt;span class="nv"&gt;$ &lt;/span&gt;git clone https://github.com/zsh-users/zsh-syntax-highlighting.git &lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;ZSH_CUSTOM&lt;/span&gt;&lt;span class="k"&gt;:-&lt;/span&gt;&lt;span class="p"&gt;~/.oh-my-zsh/custom&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;/plugins/zsh-syntax-highlighting
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After that, edit your &lt;code&gt;~/.zshrc&lt;/code&gt; (again!) and add those to the plugins section:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;plugins&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;
  zsh-autosuggestions
  zsh-syntax-highlighting
  &lt;span class="c"&gt;# any other plugins come in here too&lt;/span&gt;
&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And look as it goes!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fsuogfdz9is7bz6dp1cgx.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fsuogfdz9is7bz6dp1cgx.gif" alt="Animation illustrating the plugins' behaviour"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Wow! Quite a lot in this post. Time to take a break and see you next time!&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This post was originally published at my personal blog, &lt;a href="https://manoel.tech" rel="noopener noreferrer"&gt;manoel.tech&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
    </item>
    <item>
      <title>My desktop setup - Part 1</title>
      <dc:creator>Manoel Thiago Nogueira</dc:creator>
      <pubDate>Fri, 28 Jun 2019 16:44:56 +0000</pubDate>
      <link>https://forem.com/manoeltlobo/my-desktop-setup-part-1-bn1</link>
      <guid>https://forem.com/manoeltlobo/my-desktop-setup-part-1-bn1</guid>
      <description>&lt;p&gt;I spend a good amount of my time programming (8+ hours, Monday to Friday at least) with an Ubuntu Linux workstation since 2012. A few years ago, I started to tweak a setup that I thought it was nice to look and reduced eyestrain as much as possible.&lt;/p&gt;

&lt;p&gt;(A previous look at my setup was registered in a &lt;a href="https://github.com/ManoelLobo/my-desktop-setup" rel="noopener noreferrer"&gt;GitHub repository&lt;/a&gt;, but I changed it since then, so here come the new looks!)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fkhagld5fgjupfxtdb4lw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fkhagld5fgjupfxtdb4lw.png" alt="Open application windows:  a code editor, a terminal, and a file manager"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fpq2sclp9lsqn7ezek4rb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fpq2sclp9lsqn7ezek4rb.png" alt="Screen showing list of the most frequently used applications"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;p&gt;The first step of this quest was to find an editor that I could use for a long time, without too much distraction, a light and fast one, but powerful enough that I hadn't to rely on many other tools to get the job done. IDEs (as &lt;a href="https://www.eclipse.org/downloads/" rel="noopener noreferrer"&gt;Eclipse&lt;/a&gt; and &lt;a href="https://netbeans.org/" rel="noopener noreferrer"&gt;NetBeans&lt;/a&gt;) were quite powerful but took a long time to initialize and had a lot of visual clutter. So, I passed to the 'lightweight' editors: &lt;a href="https://www.sublimetext.com/" rel="noopener noreferrer"&gt;Sublime Text&lt;/a&gt;, &lt;a href="https://atom.io/" rel="noopener noreferrer"&gt;Atom&lt;/a&gt; and &lt;a href="https://code.visualstudio.com/" rel="noopener noreferrer"&gt;Visual Studio Code&lt;/a&gt;. Each of them had its strengths, but I settled for the VSCode for a few reasons: integrated terminal from the start, constant development, nice extension support, good and functional interface, and relative maturity took me to adopt it as my editor.&lt;/p&gt;

&lt;p&gt;Besides the helper extensions, I looked for a theme that was nice to look for an entire day. Went through some nice Material-based themes and icons. But really liked Wes Bos' &lt;a href="https://marketplace.visualstudio.com/items?itemName=wesbos.theme-cobalt2" rel="noopener noreferrer"&gt;Cobalt2 theme&lt;/a&gt; and, more recently, Sarah Drasner's &lt;a href="https://marketplace.visualstudio.com/items?itemName=sdras.night-owl" rel="noopener noreferrer"&gt;Night Owl&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I also adopted the zsh shell with a few gimmicks, namely the Oh My Zsh framework and the powerlevel9k theme; and also the Fura Code and Space Mono fonts, patched by Ryan Oasis' &lt;a href="https://nerdfonts.com" rel="noopener noreferrer"&gt;Nerd Fonts&lt;/a&gt; to comply with the PowerShell-like terminal decoration.&lt;/p&gt;

&lt;p&gt;Meanwhile, I tested a lot of variations for the Ubuntu desktop (Unity, Kubuntu, Lubuntu, Mate). In the end, I settled down using the default Gnome shell, plus &lt;a href="https://github.com/adapta-project/adapta-gtk-theme" rel="noopener noreferrer"&gt;Adapta GTK theme&lt;/a&gt; and &lt;a href="https://snwh.org/paper" rel="noopener noreferrer"&gt;Paper Icons&lt;/a&gt; by Sam Hewitt.&lt;/p&gt;

&lt;p&gt;As it is a long list of things, I thought it would be better to split in a few posts, instead of creating a gigantic, tiresome list. This is mostly a reminder to myself of what steps I have to do in case I have to reconfigure my desktop. If you got interested and want to try some/all of my custom setup, be my guest!&lt;/p&gt;

&lt;p&gt;For this first part, Ubuntu!&lt;/p&gt;

&lt;h2&gt;
  
  
  Configuring the OS
&lt;/h2&gt;

&lt;p&gt;I use the &lt;a href="https://ubuntu.com/download/desktop" rel="noopener noreferrer"&gt;Ubuntu&lt;/a&gt; default distro, but make a few adjustments to my taste. For that, I use the Tweaks tool to choose theme and icons that will be installed next (&lt;code&gt;sudo apt install gnome-tweaks&lt;/code&gt; if it is not already installed)&lt;/p&gt;

&lt;h3&gt;
  
  
  Adapta GTK Theme
&lt;/h3&gt;

&lt;p&gt;It is necessary to add the repository to the system sources list before installing it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;add-apt-repository ppa:tista/adapta
&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt update
&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;adapta-gtk-theme
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Paper Icons
&lt;/h3&gt;

&lt;p&gt;Similarly, to add the Paper Project repo:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;add-apt-repository ppa:snwh/pulp
&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt update
&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;paper-icon-theme
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Activating all
&lt;/h3&gt;

&lt;p&gt;Open the Tweaks tool from the Applications list or from the terminal with the command &lt;code&gt;gnome-tweaks&lt;/code&gt;. In the tab &lt;em&gt;Appearance&lt;/em&gt;, choose &lt;em&gt;Adapta&lt;/em&gt; (or variants) from the GTK+ dropdown, and &lt;em&gt;Paper&lt;/em&gt; from the &lt;em&gt;Icons&lt;/em&gt; one. Done, you are themed (well, you still need to restart the session).&lt;/p&gt;




&lt;p&gt;Hope this first part be useful for someone (for the future me, at least!). See you on the next post!&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This post was originally published at my personal blog, &lt;a href="https://manoel.tech" rel="noopener noreferrer"&gt;manoel.tech&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
    </item>
    <item>
      <title>I had no blog, but I wanted to scream</title>
      <dc:creator>Manoel Thiago Nogueira</dc:creator>
      <pubDate>Fri, 21 Jun 2019 19:33:20 +0000</pubDate>
      <link>https://forem.com/manoeltlobo/i-had-no-blog-but-i-wanted-to-scream-5dlp</link>
      <guid>https://forem.com/manoeltlobo/i-had-no-blog-but-i-wanted-to-scream-5dlp</guid>
      <description>&lt;p&gt;Hello, Dev Community!&lt;/p&gt;

&lt;p&gt;As eagerly expected by approximately one person, now I have a &lt;a href="https://manoel.tech"&gt;blog&lt;/a&gt;!&lt;/p&gt;

&lt;p&gt;I will be posting about developer musings and the daily life and troubles of a common tech guy, and eventually some more technical piece. And &lt;a href="https://dev.to"&gt;dev.to&lt;/a&gt; will be my main cross-posting and discussion station!&lt;/p&gt;

&lt;p&gt;Hope to be back soon with my thoughts and reflections about this crazy but incredibly interesting developer life that we live.&lt;/p&gt;

&lt;p&gt;PS: If you got the reference from the title, you earned 10 points. In whatever game you choose.&lt;/p&gt;

</description>
      <category>meta</category>
    </item>
  </channel>
</rss>
