<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Hugh Greethead - Medium]]></title>
        <description><![CDATA[A collection of my thoughts - Medium]]></description>
        <link>https://medium.com/hugh-greethead?source=rss----c4ff1d359ac2---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Hugh Greethead - Medium</title>
            <link>https://medium.com/hugh-greethead?source=rss----c4ff1d359ac2---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 12:42:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/hugh-greethead" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Build a NAS with Raspberry Pi 4]]></title>
            <link>https://medium.com/hugh-greethead/build-a-nas-with-raspberry-pi-4-4ad5087ce47f?source=rss----c4ff1d359ac2---4</link>
            <guid isPermaLink="false">https://medium.com/p/4ad5087ce47f</guid>
            <category><![CDATA[nas]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[raspbian]]></category>
            <category><![CDATA[projects]]></category>
            <dc:creator><![CDATA[Hugh Greethead]]></dc:creator>
            <pubDate>Sun, 10 May 2020 05:45:45 GMT</pubDate>
            <atom:updated>2020-05-10T05:45:45.356Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A fun weekend project for those stuck in isolation</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*exYNVJkeVlgUNelLVpoL9w.jpeg" /></figure><p><strong>What is a NAS?</strong></p><p>A NAS — Network Attached Storage, is a storage device connected to a network that allows storage and retrieval of data from a central location for authorised network users. A NAS is essentially like having a private cloud at home, and allows you to share files easily between other users of your network.</p><p>This makes a NAS great for someone who has growing storage needs that wants a lower cost (compared to cloud), more private solution and/or has multiple devices at home that would all like to access the same files in a convenient way.</p><p>A typical commercial NAS product, like the <a href="https://www.synology.com/en-global/products">Synology NAS</a> range can provide a solution for 4–10+ drives typically. However they can cost $1000s of dollars and may be more than what you need when you are first starting out, making the Raspberry Pi NAS solution an attractive low cost solution before deciding whether to invest into a bigger solution.</p><p><a href="https://www.raspberrypi.org/"><strong>Raspberry Pi 4</strong></a><strong> — What is it and why should we build a NAS with it?</strong></p><p>The Raspberry Pi 4 is one of the most popular prototyping boards in the world. It is essentially a credit card sized computer, able to run Linux that also has: USB 3.0 &amp; 2.0, Bluetooth, HDMI output, audio, ethernet and wifi functionality (and probably much more that I didn’t list!). The boards typically cost between $35-$100 depending on specs, making them an extremely powerful tool for prototyping and hobbyists alike.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*IBH72fsRNnCD8GRcZzqmRQ.jpeg" /></figure><p>So if you have some spare hard drives lying around, are able to get a Raspberry Pi 4 and are willing to tinker, then this project is suitable for you!</p><p><strong>Guide</strong></p><p>I was able to follow this guide to implement my NAS, using 2, 2TB Seagate hard drives.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FJYvUQXfiTz8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJYvUQXfiTz8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FJYvUQXfiTz8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/63b13f7f64d17aaf78ba27feda98e9eb/href">https://medium.com/media/63b13f7f64d17aaf78ba27feda98e9eb/href</a></iframe><p>Written version: <a href="https://pchelp.ricmedia.com/build-raspberry-pi3-raid-nas-server/">https://pchelp.ricmedia.com/build-raspberry-pi3-raid-nas-server/</a></p><p>I initially tried to configure with Raid 0 but had issues that were only resolved once I switched to a Raid 1 setup. I also needed to run my drives through an externally powered USB hub as the output from the Pi was insufficient, resulting in the drives powering on/off unable to provide a consistent connection if plugged directly into the provided USB 3.0 ports.</p><p>My setup:</p><ul><li>Raspberry Pi 4 with 4GB Ram</li><li>Passive cooling Pi 4 case with cooling fans</li><li>2 Seagate 2 TB Hard Drives</li><li>External USB 3.0 hub</li><li>Ethernet connection</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*1QAiqj9SEOhmjSVGxgFEbw.jpeg" /></figure><p>The video guide details how to map the NAS once its setup into your windows folder viewer, as a Mac user, the process is slightly different. The following video provides a simple explanation of how to achieve the same if using Mac.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F4sdlfAvU5-M%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D4sdlfAvU5-M&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F4sdlfAvU5-M%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9056090b62ab14f1ab632c0b0c09ad5b/href">https://medium.com/media/9056090b62ab14f1ab632c0b0c09ad5b/href</a></iframe><p>Now hopefully you are all set! There is a lot more that you can do with a NAS then just simply store files, such as using it to serve media like your own personal Netflix. What you choose to do with it is up to you.</p><p>If you run into any problems, feel free to post a comment down below or reach out to me on Twitter and I’ll see if I can help where I can!</p><p>Happy hacking.</p><p>-Hugh</p><p><em>I am a junior developer in training at </em><a href="https://coderacademy.edu.au/"><em>CoderAcademy</em></a><em> in Sydney, Australia. My interests are in programming, economics, trading and Bitcoin. Follow me on Twitter </em><a href="https://twitter.com/hughgreethead"><em>@hughgreethead</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ad5087ce47f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hugh-greethead/build-a-nas-with-raspberry-pi-4-4ad5087ce47f">Build a NAS with Raspberry Pi 4</a> was originally published in <a href="https://medium.com/hugh-greethead">Hugh Greethead</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stock Market Portfolio Tracker]]></title>
            <link>https://medium.com/hugh-greethead/stock-market-portfolio-tracker-d3762a1536?source=rss----c4ff1d359ac2---4</link>
            <guid isPermaLink="false">https://medium.com/p/d3762a1536</guid>
            <dc:creator><![CDATA[Hugh Greethead]]></dc:creator>
            <pubDate>Wed, 01 Apr 2020 23:33:41 GMT</pubDate>
            <atom:updated>2020-05-10T04:56:48.416Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I made a terminal application to track stock prices with portfolio and watchlist functionality.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*czWRt32MeEa-_7RnpCXbqQ.jpeg" /></figure><p>The Stock Market Portfolio Tracker is a terminal application designed to provide an easy way for users to get up-to-date, basic price information of all the major stocks trading in the US. Data is pulled from the <a href="https://iexcloud.io/">IEX Cloud API</a>.</p><p><strong>Purpose</strong></p><p>To have a tool that allows users to easily check basic information about a stock that is up to date from the terminal.</p><p><strong>Motivation for the project</strong></p><p>I am currently studying Web Development in a bootcamp at <a href="https://coderacademy.edu.au/">CoderAcademy</a>. We were tasked with building an application that runs in the terminal, that is user friendly and makes use of external libraries.</p><p>Investing and markets is one of my passions that I learn about in my free time, so motivation behind the project was to create a simple tool that myself or someone similar to me, could find useful after the project was over — in terms of using stock market data (in current form or extended functionality of original project).</p><p><strong>What it does</strong></p><p>The Stock Market Portfolio Tracker provides a simple interface for looking up prices and other stock market data such as:</p><ul><li>company name</li><li>sector</li><li>latest traded price</li><li>pe ratio</li><li>price change since yesterday</li><li>price change year to date</li><li>price change since 52 week high/low</li></ul><p>Users can also set a watchlist and track their portfolio stocks and the total portfolio value, all in a simple to navigate terminal interface.</p><p><strong>What I learnt doing this project</strong></p><p>The Stock Market Portfolio Tracker was my first major project built in Ruby. I got a lot out of building in Ruby as it helps to realise the power of building in high-level O-O languages in terms of how quickly and easily you can build things compared to lower level languages I first learnt to program in like C.</p><p>This was also the first time I had gotten very hands on with working with an API — through the <a href="https://github.com/tyrauber/stock_quote">‘stock_quote’ Gem</a>, interacting with the <a href="https://iexcloud.io/">IEX Cloud API</a>. This was a great first project for working with APIs as its more simple in scope as I was only making GET requests to pull in data. One cool thing was that it became obvious to me how powerful and versatile using APIs can be, whether it be for providing the framework to expand this app in future or build other stock market based applications, the fundamental building block of using the API data will remain the same.</p><p><strong>Possible improvements</strong></p><p>I would like to refactor the application to take command line arguments rather than use the‘<a href="https://github.com/piotrmurach/tty-prompt">TTY-Prompt</a>’ gem to have a pseudo GUI, because in reality the people more likely to use this app would already be familiar and comfortable using the command line, and having the prompt menus would add friction and unnecessary time spent to use the app.</p><p>Expanding the universe of stocks that it is compatible with — starting with the Australian market that a lot of my peers invest in would be a great starting point.</p><p>Add export to CSV would be a cool function for those wishing to track/do their own analysis in spreadsheets.</p><p><a href="https://github.com/HughG-50/sp500_stock_tracker"><strong>Project Github repository</strong></a></p><p>Please feel free to fork, play around with it and let me know if you have any ideas for features that could make it better!</p><p>-Hugh</p><p><em>I am a junior developer in training at </em><a href="https://coderacademy.edu.au/"><em>CoderAcademy</em></a><em> in Sydney, Australia. My interests are in programming, economics, trading and Bitcoin. Follow me on Twitter </em><a href="https://twitter.com/hughgreethead"><em>@hughgreethead</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3762a1536" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hugh-greethead/stock-market-portfolio-tracker-d3762a1536">Stock Market Portfolio Tracker</a> was originally published in <a href="https://medium.com/hugh-greethead">Hugh Greethead</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to configure VSCode for Ruby Developers]]></title>
            <link>https://medium.com/hugh-greethead/how-to-configure-vscode-for-ruby-developers-ae1f078ed143?source=rss----c4ff1d359ac2---4</link>
            <guid isPermaLink="false">https://medium.com/p/ae1f078ed143</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[rails]]></category>
            <dc:creator><![CDATA[Hugh Greethead]]></dc:creator>
            <pubDate>Thu, 05 Mar 2020 02:05:07 GMT</pubDate>
            <atom:updated>2020-05-10T04:57:41.803Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RJVoNY1KvVewQGam.png" /></figure><p>With VSCode becoming a more and more popular platform for developers, one in which can be made as close to or as far from a text editor or IDE as you desire, I thought I would share how to configure the custom setup that I like running in VSCode for Ruby development.</p><p>1.<strong> Setup terminal</strong></p><p>If you haven’t already customised your terminal I recommend you read my article:<strong> </strong><a href="https://medium.com/hugh-greethead/how-to-customise-your-mac-terminal-with-zsh-and-powerlevel10k-2ac469fcf71f"><strong><em>How to customise your Mac terminal with ZSH and PowerLevel10k</em></strong></a><em> </em>to install a more aesthetic and functional shell setup.</p><p>2.<strong> Install Ruby</strong></p><p>Make sure you’ve installed Ruby onto your machine. I’ve written a brief guide to installing and setting up Ruby using RVM, <a href="https://medium.com/hugh-greethead/how-to-install-ruby-on-a-mac-619202a7b15c"><strong>check it out here</strong></a>.</p><p>3. <strong>Install VSCode</strong></p><pre>brew cask install visual-studio-code</pre><p>4. <strong>Change theme</strong></p><p>Go to ‘<em>Code</em>’ &gt; ‘<em>Preferences</em>’ &gt; ‘Settings’ &gt; ‘<em>Workbench’ &gt; ‘Appearance’ &gt;</em>‘<em>Colour Theme</em>’</p><p>Choose any Dark theme you prefer (come on, who uses light themes these days 😛).</p><p>5. <strong>Install Ruby plug-in extensions</strong></p><p>For basic Ruby language support, debugging and syntax highlighting:</p><p><a href="https://marketplace.visualstudio.com/items?itemName=rebornix.Ruby"><strong>Ruby</strong></a></p><p><a href="https://marketplace.visualstudio.com/items?itemName=wingrunr21.vscode-ruby"><strong>VSCode Ruby</strong></a></p><p><a href="https://marketplace.visualstudio.com/items?itemName=kaiwood.endwise"><strong>endwise</strong></a></p><p>More intensive development tools — for making VSCode behave more like an IDE for Ruby:</p><p><a href="https://marketplace.visualstudio.com/items?itemName=castwide.solargraph"><strong>Solargraph</strong></a></p><p>The solargraph ruby gem must be installed in order to use it:</p><pre>gem install solargraph</pre><p><strong>**Make sure you also install and enable the extension within VSCode. You may also need to restart VSCode for the changes to take effect.</strong></p><p><em>Solargraph is awesome because of the inbuilt documentation and context aware auto-completion for Ruby code. It is very useful.</em></p><p><a href="https://marketplace.visualstudio.com/items?itemName=misogi.ruby-rubocop"><strong>Ruby-rubocop</strong></a></p><p><em>You can always disable this if it gets too annoying, but a great tool for enforcing you to have a consistent style in your code!</em></p><p>Other code formatting tools:</p><p><a href="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode"><strong>Prettier</strong></a></p><p>6. <strong>Update default terminal in VSCode to Zsh</strong></p><p>We want to update the default terminal in VSCode to look the same as the <a href="https://medium.com/hugh-greethead/how-to-customise-your-mac-terminal-with-zsh-and-powerlevel10k-2ac469fcf71f">customised terminal on Zsh with Powerlevel10k </a>. Assuming that step 1 has been completed we will open a new terminal in VSCode:</p><p><em>‘Terminal’ </em>&gt; <em>‘New Terminal’</em></p><p>From the dropdown shell select menu, click <em>‘Select Default Shell’ </em>and set to zsh.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tvFFIHwvpvN-H_tAD__AUA.png" /></figure><p>If your terminal looks like the following then you need to update your fonts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d76DRrJkFb1yolLySwmAFg.png" /></figure><p>I use the <a href="https://github.com/romkatv/dotfiles-public/blob/master/.local/share/fonts/NerdFonts/MesloLGS%20NF%20Regular.ttf">MesloLGS NF</a> font. Once downloaded, edit the default font.</p><p><em>‘Code’ </em>&gt; <em>‘Preferences’</em> &gt; <em>‘Settings’ &gt; ‘Text Editor’ </em>&gt; <em>‘Font’ &gt; ‘Edit in settings.json’</em></p><p>And add the following line:</p><pre>&quot;editor.fontFamily&quot;: &quot;MesloLGS NF&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1eW4kohrMbXUyxJLIflT1g.png" /></figure><p>7. <strong>Update shortcuts</strong></p><p>One last thing to consider is customising the shortcuts/hotkeys to make the use of VSCode more comfortable. The default shortcut for switching between VSCode tabs on Mac is ctrl + 1, ctrl +2 , … etc. I find this layout to be awkward and changing the shortcut to cmd + 1, cmd +2 is much more user friendly in my opinion.</p><p><em>‘Code’</em> &gt; ‘<em>Preferences’ </em>&gt; <em>‘Keyboard Shortcuts’</em></p><p>On that page, click the button on the top right of the page…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8GkMMaQGab3AeN9icQT7gA.png" /></figure><p>and append the configuration below, then save.</p><pre>[<br>    {<br>        &quot;key&quot;: &quot;cmd+0&quot;,<br>        &quot;command&quot;: &quot;workbench.action.openLastEditorInGroup&quot;<br>    },<br>    {<br>        &quot;key&quot;: &quot;cmd+1&quot;,<br>        &quot;command&quot;: &quot;workbench.action.openEditorAtIndex1&quot;<br>    },<br>    {<br>        &quot;key&quot;: &quot;cmd+2&quot;,<br>        &quot;command&quot;: &quot;workbench.action.openEditorAtIndex2&quot;<br>    },<br>    {<br>        &quot;key&quot;: &quot;cmd+3&quot;,<br>        &quot;command&quot;: &quot;workbench.action.openEditorAtIndex3&quot;<br>    },<br>    {<br>        &quot;key&quot;: &quot;cmd+4&quot;,<br>        &quot;command&quot;: &quot;workbench.action.openEditorAtIndex4&quot;<br>    },<br>    {<br>        &quot;key&quot;: &quot;cmd+5&quot;,<br>        &quot;command&quot;: &quot;workbench.action.openEditorAtIndex5&quot;<br>    },<br>    {<br>        &quot;key&quot;: &quot;cmd+6&quot;,<br>        &quot;command&quot;: &quot;workbench.action.openEditorAtIndex6&quot;<br>    },<br>    {<br>        &quot;key&quot;: &quot;cmd+7&quot;,<br>        &quot;command&quot;: &quot;workbench.action.openEditorAtIndex7&quot;<br>    },<br>    {<br>        &quot;key&quot;: &quot;cmd+8&quot;,<br>        &quot;command&quot;: &quot;workbench.action.openEditorAtIndex8&quot;<br>    },<br>    {<br>        &quot;key&quot;: &quot;cmd+9&quot;,<br>        &quot;command&quot;: &quot;workbench.action.openEditorAtIndex9&quot;<br>    },<br>    {<br>        &quot;key&quot;: &quot;ctrl+1&quot;,<br>        &quot;command&quot;: &quot;workbench.action.focusFirstEditorGroup&quot;<br>    },<br>    {<br>        &quot;key&quot;: &quot;ctrl+2&quot;,<br>        &quot;command&quot;: &quot;workbench.action.focusSecondEditorGroup&quot;<br>    },<br>    {<br>        &quot;key&quot;: &quot;ctrl+3&quot;,<br>        &quot;command&quot;: &quot;workbench.action.focusThirdEditorGroup&quot;<br>    }<br>]</pre><p>You now can use CMD+[1–9] to switch between tabs and CTRL+[1–3] to focus editor groups.</p><p>Thanks to <a href="https://stackoverflow.com/questions/38957302/is-there-a-quick-change-tabs-function-in-visual-studio-code">https://stackoverflow.com/questions/38957302/is-there-a-quick-change-tabs-function-in-visual-studio-code</a></p><p>If you’ve made it this far hopefully you didn’t have too many troubles and your development environment is much more capable for programming in Ruby. Let me know what your favourite VSCode extensions are!</p><p>-Hugh</p><p><em>I am a junior developer in training at </em><a href="https://coderacademy.edu.au/"><em>CoderAcademy</em></a><em> in Sydney, Australia. My interests are in programming, economics, trading and Bitcoin. Follow me on Twitter @</em><a href="https://twitter.com/hughgreethead"><em>hughgreethead</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae1f078ed143" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hugh-greethead/how-to-configure-vscode-for-ruby-developers-ae1f078ed143">How to configure VSCode for Ruby Developers</a> was originally published in <a href="https://medium.com/hugh-greethead">Hugh Greethead</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install Ruby on a Mac]]></title>
            <link>https://medium.com/hugh-greethead/how-to-install-ruby-on-a-mac-619202a7b15c?source=rss----c4ff1d359ac2---4</link>
            <guid isPermaLink="false">https://medium.com/p/619202a7b15c</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Hugh Greethead]]></dc:creator>
            <pubDate>Tue, 03 Mar 2020 09:03:15 GMT</pubDate>
            <atom:updated>2020-05-10T04:58:22.491Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to install Ruby on Mac</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g9FV-nitVeX9Z6u6WT7-Iw.png" /></figure><p>For the majority of MacOS users they are lucky that the device comes pre-installed with Ruby. However when programming there are many times when we might want to switch between different devices or customise our setup further. This is where installing Ruby with a version manager, such as <a href="https://rvm.io/">RVM</a> becomes useful to us.</p><p>The following details the basic procedure to install Ruby using RVM:</p><p>1.<strong> Setup terminal</strong></p><p>If you haven’t already customised your terminal I recommend you read my article:<strong> </strong><a href="https://medium.com/hugh-greethead/how-to-customise-your-mac-terminal-with-zsh-and-powerlevel10k-2ac469fcf71f"><strong><em>How to customise your Mac terminal with ZSH and PowerLevel10k</em></strong></a><em> </em>to install a more aesthetic and functional shell setup.</p><p>2.<strong> Install </strong><a href="https://rvm.io/"><strong>Ruby Version Manager — RVM</strong></a>. RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems. You could also use <a href="https://github.com/rbenv/rbenv"><strong>rbenv</strong></a><strong> </strong>instead however I find the RVM commands and documentation to be easier to use.</p><p>Following the instructions on the website, enter the commands:</p><pre>gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB</pre><p>Then</p><pre>\curl -sSL <a href="https://get.rvm.io/">https://get.rvm.io</a> | bash -s stable --rails</pre><p>3. <strong>Integrate zsh +iTerm</strong><br>Assuming you have setup zsh in earlier steps, integrate zsh + iTerm with the steps outlined here: <a href="https://rvm.io/integration/zsh#zsh-iterm">https://rvm.io/integration/zsh#zsh-iterm</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ftBAzm2tjvOfulPQIpIZyQ.png" /></figure><p>4. <strong>Install Ruby<br></strong>Enter the following into the command line:</p><pre>rvm install &quot;ruby-2.7.0&quot;</pre><p>or this will also work</p><pre>rvm install 2.7.0</pre><p>Once installed, you can use the following command to check which version of Ruby you are running:</p><pre>ruby -v</pre><p>5. <strong>Using different versions of Ruby</strong></p><p>There may be times when an older version of Ruby. First make sure it is installed and then use the following command to switch to that version:</p><pre>rvm use &lt;version_number&gt;</pre><p>You can also set the default Ruby version. I set my default to version 2.7.0.</p><pre>rvm --default use 2.7.0</pre><p>And that’s all there is to it. Let me know if this guide helped you or if you have any other methods you use to install Ruby.</p><p>-Hugh</p><p><em>I am a junior developer in training at </em><a href="https://coderacademy.edu.au/"><em>CoderAcademy</em></a><em> in Sydney, Australia. My interests are in programming, economics, trading and Bitcoin. Follow me on Twitter </em><a href="https://twitter.com/hughgreethead"><em>@hughgreethead</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=619202a7b15c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hugh-greethead/how-to-install-ruby-on-a-mac-619202a7b15c">How to install Ruby on a Mac</a> was originally published in <a href="https://medium.com/hugh-greethead">Hugh Greethead</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to customise your Mac terminal with ZSH and PowerLevel10k]]></title>
            <link>https://medium.com/hugh-greethead/how-to-customise-your-mac-terminal-with-zsh-and-powerlevel10k-2ac469fcf71f?source=rss----c4ff1d359ac2---4</link>
            <guid isPermaLink="false">https://medium.com/p/2ac469fcf71f</guid>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[zsh]]></category>
            <dc:creator><![CDATA[Hugh Greethead]]></dc:creator>
            <pubDate>Wed, 26 Feb 2020 10:06:53 GMT</pubDate>
            <atom:updated>2020-05-10T04:59:19.668Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Add some style and extra functionality to your terminal</em></p><p>For all new developers learning how to code on their macOS machines, the default command line interface (CLI) they will use is the Mac Terminal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*guWq3vaMhJx3h0-_kRSKuQ.jpeg" /></figure><p>While fully functional and unlocking powerful capabilities that the GUI cannot provide, the default theme lacks style and additional capabilities that we can add to the terminal — using Z shell (ZSH) and the many popular open source plug-ins and themes it comes with.</p><p><strong>This guide shows how to customise iTerm2 with ZSH and PowerLevel10k</strong></p><ol><li>Open up the default Mac Terminal</li><li>Install <a href="https://brew.sh/">Homebrew</a> — Homebrew is a package manager that helps simplify the installation of software on our MacOS (or Linux) operating system</li></ol><pre>/usr/bin/ruby -e &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)&quot;</pre><p>3. Install <a href="https://iterm2.com/">iTerm2</a> — iTerm2 is a better alternative to the Terminal.</p><pre>brew cask install iterm2</pre><p>4. Open iTerm2</p><p>5. Install the <a href="https://github.com/ohmyzsh/ohmyzsh">Oh My Zsh</a> Zsh framework using curl</p><pre>sh -c &quot;$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)&quot;</pre><p>6. Now run the following:</p><pre>git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k</pre><p>7. Open your ~/.zshrc file to edit. This should be in your home directory (navigate to home directory with cd~).</p><pre>open ~./zshrc</pre><p>8. Edit the file, setting the theme to “powerlevel10k/powerlevel10k”. Here is a <a href="https://gist.github.com/kevin-smets/8568070">guide</a> for this step.</p><pre>ZSH_THEME=&quot;powerlevel10k/powerlevel10k&quot;</pre><p>It should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*CAsUg2zvqS2EI_F5vi-cBw.png" /></figure><p>Save the file.</p><p>9. Now close iTerm2 and reopen it. Your terminal should now be updated with a new look. You should now be prompted to install fonts, choose yes and then continue with the configuration wizard to finish the setup.</p><p>(The font installed on my machine was <a href="https://github.com/romkatv/dotfiles-public/blob/master/.local/share/fonts/NerdFonts/MesloLGS%20NF%20Regular.ttf">MesloLGS NF</a>)</p><p>Refer to <a href="https://github.com/romkatv/powerlevel10k#manual">https://github.com/romkatv/powerlevel10k#manual</a> for more information on Powerlevel10k.</p><p><strong>For reference the guide I followed is available here:</strong></p><p><a href="https://www.youtube.com/watch?v=pTW02GMeI74">https://www.youtube.com/watch?v=pTW02GMeI74</a></p><p><a href="https://gist.github.com/kevin-smets/8568070">https://gist.github.com/kevin-smets/8568070</a></p><p><em>Happy coding!<br>-Hugh</em></p><p><em>I am a junior developer in training at </em><a href="https://coderacademy.edu.au/"><em>CoderAcademy</em></a><em> in Sydney, Australia. My interests are in programming, economics, trading and Bitcoin. Follow me on Twitter </em><a href="https://twitter.com/hughgreethead"><em>@hughgreethead</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ac469fcf71f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hugh-greethead/how-to-customise-your-mac-terminal-with-zsh-and-powerlevel10k-2ac469fcf71f">How to customise your Mac terminal with ZSH and PowerLevel10k</a> was originally published in <a href="https://medium.com/hugh-greethead">Hugh Greethead</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>