<?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>DEV Community: Charlène Bonnardeaux</title>
    <description>The latest articles on DEV Community by Charlène Bonnardeaux (@planet_cbx).</description>
    <link>https://dev.to/planet_cbx</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%2F649856%2F27380ca4-7d75-47c6-ac96-b9a07988c767.png</url>
      <title>DEV Community: Charlène Bonnardeaux</title>
      <link>https://dev.to/planet_cbx</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/planet_cbx"/>
    <language>en</language>
    <item>
      <title>Be friends with your Terminal</title>
      <dc:creator>Charlène Bonnardeaux</dc:creator>
      <pubDate>Tue, 23 Nov 2021 13:24:48 +0000</pubDate>
      <link>https://dev.to/planet_cbx/be-friend-with-your-terminal-4hgc</link>
      <guid>https://dev.to/planet_cbx/be-friend-with-your-terminal-4hgc</guid>
      <description>&lt;p&gt;I recently changed my computer, so I had to configure back my entire work environment and I noticed that my terminal is what i barely pimped the most. Since I never made a post on the Dev Community I saw on it a great opportunity to share with you some tips about this terminal that scares so many young developer like me!&lt;/p&gt;

&lt;h2&gt;
  
  
  Before all
&lt;/h2&gt;

&lt;p&gt;I’m on Mac, so my terminal is by default a zsh shell (since Catalina). A shell is a command-line interpreter and there different ones for different computer operating system, for the sample, on Linux, it’s commonly a Bash shell. So if you use Linux or Windows, the procedure and the commands may be different. &lt;br&gt;
FYI: You can know your shell by running this command:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$ echo $0&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  The basis for making the terminal friendly
&lt;/h2&gt;

&lt;p&gt;First of all we need a package manager to be able to install and maintain free and open-source software as Node.JS, Python, … For that we’ll use &lt;a href="https://curl.se/"&gt;cUrl&lt;/a&gt;, a tool to get some data from or to a server, so a url. For making that append we’ll run this command on our terminal:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$ curl -fsSL -o install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;If you want know more about the flags used in this command line. i recommend to you to visit the awesome &lt;a href="https://explainshell.com/explain?cmd=curl+-o+example.org"&gt;explainshell.com&lt;/a&gt;!&lt;/p&gt;

&lt;h2&gt;
  
  
  With colors it’s less scary
&lt;/h2&gt;

&lt;p&gt;It’s time to make our terminal more pretty, with some colors for sample! We’ll install &lt;a href="https://ohmyz.sh/"&gt;Oh My Zsh&lt;/a&gt;, a delightful open source framework for zsh shell that modernises the terminal and makes easy the configuration of it.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;It’s now the time to configure it, and it’s really easy! Open the configuration file created by the previous installation:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$ vim ~/.zshrc&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;In this configuration file you will find among others a variable “ZSH_THEME”, it determines the theme you will apply to your terminal. There is a lot of them available, and a small google search will allow you to see them all, for my part, the &lt;a href="https://github.com/agnoster/agnoster-zsh-theme"&gt;agnoster&lt;/a&gt; theme is my favorite. So, in my .zshrc file I’ve ZSH_THEME=“agnoster”. &lt;/p&gt;

&lt;p&gt;But for this particular theme we need a particular font, the &lt;a href="https://github.com/powerline/fonts/tree/master/UbuntuMono"&gt;Ubuntu Mono&lt;/a&gt;. Of course you can download this font as a standard human or again use your terminal by directly clonning the project:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git clone https://github.com/powerline/fonts.git&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Going to the created folder and run the script for the installation&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cd fonts &amp;amp;&amp;amp; ./install.sh&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;And finally, deleting the folder&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cd .. &amp;amp;&amp;amp; rm -rf fonts&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Now that you have these awesome fonts, let’s use them in the terminal! For this, in the menu bar, follow Terminal &amp;gt; Preferences and search “font” in the first panel. Click on the "change" button and select “Ubuntu Mono derivative Powerline 11”. Close the windows and make the changing operate by telling to the terminal that we have changing something in the zshrc file:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$ source ~/.zshrc&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  And now, you have an awesome terminal!
&lt;/h2&gt;

&lt;p&gt;You can also choose different colors for the background, the sections lines ect... in the previous preference menu!&lt;/p&gt;

&lt;p&gt;Follow me to be informed of the next article about aliases in the terminal!&lt;/p&gt;

</description>
      <category>ios</category>
      <category>tutorial</category>
      <category>programming</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
