<?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: Du Hoang</title>
    <description>The latest articles on Forem by Du Hoang (@duhoang).</description>
    <link>https://forem.com/duhoang</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%2F498613%2Fc5b23ee3-5fad-45db-a916-ddc135505738.png</url>
      <title>Forem: Du Hoang</title>
      <link>https://forem.com/duhoang</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/duhoang"/>
    <language>en</language>
    <item>
      <title>Custom terminal with oh-my-zsh and starship</title>
      <dc:creator>Du Hoang</dc:creator>
      <pubDate>Tue, 30 Jan 2024 06:12:57 +0000</pubDate>
      <link>https://forem.com/duhoang/custom-terminal-with-oh-my-zsh-and-starship-2eh0</link>
      <guid>https://forem.com/duhoang/custom-terminal-with-oh-my-zsh-and-starship-2eh0</guid>
      <description>&lt;h3&gt;
  
  
  My setup
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;OS: macOS Monterey 12.5.1&lt;/li&gt;
&lt;li&gt;Editor: Visual Studio Code&lt;/li&gt;
&lt;li&gt;Theme: Bearded Theme HC Ebony&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  oh-my-zsh and nerd-font
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Install &lt;a href="https://ohmyz.sh/#install"&gt;oh-my-zsh&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Your &lt;strong&gt;~/.zshrc&lt;/strong&gt; file should have these lines&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="simple"
source $ZSH/oh-my-zsh.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Download and install &lt;a href="https://www.nerdfonts.com"&gt;nerd-font&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Starship
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Install &lt;a href="https://starship.rs/guide/#%F0%9F%9A%80-installation"&gt;starship&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Edit your &lt;strong&gt;~/.zshrc&lt;/strong&gt; file using this command&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nvim ~/.config/starship.toml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nano ~/.config/starship.toml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Add the following to the end of your &lt;strong&gt;~/.zshrc&lt;/strong&gt; file
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;eval "$(starship init zsh)"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;The default starship will look like this&lt;/em&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flh0bnasn3jpqx91asvuz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flh0bnasn3jpqx91asvuz.png" alt="The default starship" width="531" height="69"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Config
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;To &lt;a href="https://starship.rs/presets/no-runtimes.html"&gt;remove runtime&lt;/a&gt;, run this command
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;starship preset no-runtime-versions -o ~/.config/starship.toml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Add these configs to the top of the &lt;strong&gt;~/.zshrc&lt;/strong&gt; file
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"$schema" = 'https://starship.rs/config-schema.json'

add_newline = false

[line_break]
disabled = true

[character] 
success_symbol = '[➜](bold green)'
error_symbol = "[➜](red)"
vicmd_symbol = "[❮](green)"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Final &lt;strong&gt;~/.config/starship.toml&lt;/strong&gt; file should be like this&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz0ijfqifcn0fvvzp3gfi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz0ijfqifcn0fvvzp3gfi.png" alt="Final ~/.config/starship.toml` file" width="489" height="827"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>custom</category>
      <category>terminal</category>
      <category>ohmyzsh</category>
      <category>starship</category>
    </item>
    <item>
      <title>Vue 3: Add font-awsome icons</title>
      <dc:creator>Du Hoang</dc:creator>
      <pubDate>Mon, 09 May 2022 03:44:55 +0000</pubDate>
      <link>https://forem.com/duhoang/vue-3-add-font-awsome-icons-4bc1</link>
      <guid>https://forem.com/duhoang/vue-3-add-font-awsome-icons-4bc1</guid>
      <description>&lt;p&gt;Tech detail:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ubuntu 22.04&lt;/li&gt;
&lt;li&gt;VueJS 3&lt;/li&gt;
&lt;li&gt;Font-awsome&lt;/li&gt;
&lt;li&gt;TypeScript&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;URLs:&lt;br&gt;
&lt;a href="https://www.npmjs.com/package/@fortawesome/vue-fontawesome" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/@fortawesome/vue-fontawesome&lt;/a&gt;&lt;br&gt;
&lt;a href="https://fontawesome.com/icons" rel="noopener noreferrer"&gt;https://fontawesome.com/icons&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Install
&lt;/h1&gt;

&lt;p&gt;Your &lt;code&gt;package.json&lt;/code&gt; should looked like this&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

"@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-regular-svg-icons": "^6.1.1",
"@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/vue-fontawesome": "^3.0.0-5",


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Run these commands (these might have more than what you need)&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&lt;p&gt;npm i --save @fortawesome/fontawesome-svg-core&lt;br&gt;
npm i --save @fortawesome/free-solid-svg-icons&lt;br&gt;
npm i --save @fortawesome/free-brands-svg-icons&lt;br&gt;
npm i --save @fortawesome/free-regular-svg-icons&lt;br&gt;
npm i --save @fortawesome/vue-fontawesome@prerelease&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h1&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Update main.js&lt;br&gt;
&lt;/h1&gt;

&lt;p&gt;Your &lt;code&gt;src/main.ts&lt;/code&gt; should looked like this&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&lt;p&gt;import { createApp } from "vue";&lt;br&gt;
import { createPinia } from "pinia";&lt;/p&gt;

&lt;p&gt;import App from "./App.vue";&lt;br&gt;
import router from "./router";&lt;/p&gt;

&lt;p&gt;import { library } from "@fortawesome/fontawesome-svg-core";&lt;br&gt;
import { faTrashCan } from "@fortawesome/free-solid-svg-icons"; &amp;lt;--- Add any icons you need here&lt;br&gt;
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";&lt;/p&gt;

&lt;p&gt;const app = createApp(App);&lt;/p&gt;

&lt;p&gt;library.add(faTrashCan);&lt;br&gt;
app.component("font-awesome-icon", FontAwesomeIcon);&lt;/p&gt;

&lt;p&gt;app.use(createPinia());&lt;br&gt;
app.use(router);&lt;/p&gt;

&lt;p&gt;app.mount("#app");&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h1&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Usage&lt;br&gt;
&lt;/h1&gt;

&lt;p&gt;A file which uses the trash icon will looked like this&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&lt;p&gt;&amp;lt;template&amp;gt;&lt;br&gt;
  &amp;lt;div class="delete-item"&amp;gt;&lt;br&gt;
    &amp;lt;slot id="id"&amp;gt;&amp;lt;font-awesome-icon :icon="['fas', 'trash-can']" /&amp;gt;&amp;lt;/slot&amp;gt;&lt;br&gt;
  &amp;lt;/div&amp;gt;&lt;br&gt;
&amp;lt;/template&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;style scoped&amp;gt;&lt;br&gt;
.delete-item {&lt;br&gt;
  margin: 1rem;&lt;br&gt;
  padding: 0.5rem;&lt;br&gt;
}&lt;br&gt;
&amp;lt;/style&amp;gt;&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h1&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Result&lt;br&gt;
&lt;/h1&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnga3agbfwop83cc7myvc.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnga3agbfwop83cc7myvc.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>tutorial</category>
      <category>vue</category>
      <category>fontawesome</category>
    </item>
    <item>
      <title>Ubuntu 22.04: Create Blitzjs app</title>
      <dc:creator>Du Hoang</dc:creator>
      <pubDate>Tue, 26 Apr 2022 13:58:33 +0000</pubDate>
      <link>https://forem.com/duhoang/ubuntu-2204-create-blitzjs-app-455i</link>
      <guid>https://forem.com/duhoang/ubuntu-2204-create-blitzjs-app-455i</guid>
      <description>&lt;p&gt;OS: Ubuntu 22.04&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;There is a bug relevant to openSSL, prisma for this newest version of Ubuntu&lt;br&gt;
There are 2 ways to fix it (Not really sure about this)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Update package, use prisma dev version (I chose this)&lt;/li&gt;
&lt;li&gt;Install older openSSL version&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;Step-by-step to create a Blitzjs app &lt;/p&gt;

&lt;h2&gt;
  
  
  Create the app
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install -g blitz --legacy-peer-deps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;blitz new myAppName
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd myAppName
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Fix the bug
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Open the project&lt;/li&gt;
&lt;li&gt;Open package.json file&lt;/li&gt;
&lt;li&gt;Update packages
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dependencies: "@prisma/client": "3.13.0-dev.29"
devDependencies: "prisma": "3.13.0-dev.29"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Migrate
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;blitz prisma migrate dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Start the project
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;blitz dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Ubuntu: Create Postman shortcut</title>
      <dc:creator>Du Hoang</dc:creator>
      <pubDate>Sat, 22 Jan 2022 03:40:14 +0000</pubDate>
      <link>https://forem.com/duhoang/ubuntu-create-postman-shortcut-31jp</link>
      <guid>https://forem.com/duhoang/ubuntu-create-postman-shortcut-31jp</guid>
      <description>&lt;h1&gt;
  
  
  Ubuntu 21.10
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;You just installed postman without using snap and don't know how to add it to your dock? Here is how&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Create desktop entry
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Open terminal and type&lt;/em&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

cd /usr/share/applications/


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Then&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

sudo nano postman.desktop


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;em&gt;nano can be replaced with gedit&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Enter your password, a file will be opened for you, paste these&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Postman
Icon=postman.png &amp;lt;-- *Check this*
Path=/home/[your username]/Postman &amp;lt;-- *Check this*
Exec=/home/[your username]/Postman/Postman &amp;lt;-- *Check this*
StartupNotify=false
StartupWMClass=Postman
OnlyShowIn=Unity;GNOME;
X-UnityGenerated=true


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Save&lt;/p&gt;

&lt;h2&gt;
  
  
  Add to your favorites
&lt;/h2&gt;

&lt;p&gt;Click on &lt;code&gt;Show Applications&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Search for &lt;code&gt;Postman&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Open it&lt;/p&gt;

&lt;p&gt;Right click and choose &lt;code&gt;Add to Favorites&lt;/code&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnk5jlvx5yojkd3d52moo.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnk5jlvx5yojkd3d52moo.png" alt="Postman on dock"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ubuntu</category>
      <category>tutorial</category>
      <category>postman</category>
      <category>shortcut</category>
    </item>
    <item>
      <title>Zsh/Zimfw: Fix bug prompt-pwd</title>
      <dc:creator>Du Hoang</dc:creator>
      <pubDate>Fri, 21 Jan 2022 10:19:30 +0000</pubDate>
      <link>https://forem.com/duhoang/zshzimfw-fix-bug-prompt-pwd-288d</link>
      <guid>https://forem.com/duhoang/zshzimfw-fix-bug-prompt-pwd-288d</guid>
      <description>&lt;h1&gt;
  
  
  Ubuntu
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;1. Open &lt;code&gt;.zimrc&lt;/code&gt; in Home&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Paste these lines&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

zmodule prompt-pwd
zmodule git-info


&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzgz0klhsmy2zdcpeecd3.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzgz0klhsmy2zdcpeecd3.png" alt="Those 2 lines in .zimrc file"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Save&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>ubuntu</category>
      <category>tutorial</category>
      <category>zsh</category>
      <category>zim</category>
    </item>
    <item>
      <title>Fix bug: Zsh/zimfw terminal cannot find modules</title>
      <dc:creator>Du Hoang</dc:creator>
      <pubDate>Thu, 20 Jan 2022 14:21:22 +0000</pubDate>
      <link>https://forem.com/duhoang/fix-bug-zsh-terminal-cannot-find-module-4858</link>
      <guid>https://forem.com/duhoang/fix-bug-zsh-terminal-cannot-find-module-4858</guid>
      <description>&lt;p&gt;It happens when your git bash have modules like "npm", "yarn" locally NOT globally but your zsh terminal said &lt;code&gt;module not found&lt;/code&gt;. This is how to fix it:&lt;/p&gt;

&lt;h1&gt;
  
  
  Ubuntu
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Open &lt;code&gt;.bashrc&lt;/code&gt; in Home&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open &lt;code&gt;.zshrc&lt;/code&gt; in Home&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Copy last 3 lines of the &lt;code&gt;.bashrc&lt;/code&gt; and paste to the last line of &lt;code&gt;.zshrc&lt;/code&gt; file. Mine is like:&lt;br&gt;
&lt;code&gt;export NVM_DIR="$HOME/.nvm"&lt;br&gt;
[ -s "$NVM_DIR/nvm.sh" ] &amp;amp;&amp;amp; \. "$NVM_DIR/nvm.sh"  # This loads nvm&lt;br&gt;
[ -s "$NVM_DIR/bash_completion" ] &amp;amp;&amp;amp; \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Save&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>terminal</category>
      <category>tutorial</category>
      <category>ubuntu</category>
      <category>zsh</category>
    </item>
    <item>
      <title>Install powerline for zsh/zimfw</title>
      <dc:creator>Du Hoang</dc:creator>
      <pubDate>Thu, 20 Jan 2022 14:12:39 +0000</pubDate>
      <link>https://forem.com/duhoang/install-powerline-for-zsh-45in</link>
      <guid>https://forem.com/duhoang/install-powerline-for-zsh-45in</guid>
      <description>&lt;p&gt;After installing zsh/zimfw, there can be an annoying problem with terminal font to solve this. I recommend powerline, here is how to do&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Ubuntu 21&lt;/em&gt;&lt;br&gt;
&lt;em&gt;Windows please comment your results, bugs etc&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Clone&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone https://github.com/powerline/fonts.git --depth=1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Install&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd fonts
./install.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Clean-up&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd ..
rm -rf fonts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Set the font wherever you like&lt;/strong&gt;&lt;br&gt;
For example: VSCode&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2cmqld6fuqd8qobt2m6k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2cmqld6fuqd8qobt2m6k.png" alt="Image description" width="479" height="316"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>terminal</category>
      <category>ubuntu</category>
      <category>powerline</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Install zsh/zimfw on Ubuntu 20+</title>
      <dc:creator>Du Hoang</dc:creator>
      <pubDate>Wed, 19 Jan 2022 09:12:47 +0000</pubDate>
      <link>https://forem.com/duhoang/install-zshzimfw-on-ubuntu-20-2i4e</link>
      <guid>https://forem.com/duhoang/install-zshzimfw-on-ubuntu-20-2i4e</guid>
      <description>&lt;h1&gt;
  
  
  Install zsh
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;Open terminal and run&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Check zsh is installed
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;Open terminal and run&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;which zsh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Config zsh
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;Open terminal and run&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;zsh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Config whatever you like&lt;/em&gt;&lt;br&gt;
I choose &lt;code&gt;0&lt;/code&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Install zimfw
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;Download this file from
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://github.com/zimfw/install/blob/master/install.zsh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Open terminal, type in &lt;code&gt;zsh&lt;/code&gt;, cd to the directory that contains the file you just downloaded, type &lt;code&gt;zsh ${fileName}&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  Config / Add theme
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;Go to file .zimrc&lt;/li&gt;
&lt;li&gt;Edit &lt;code&gt;zmodule ${themeName}&lt;/code&gt;. default is &lt;code&gt;asciiship&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Save&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;Zimfw install&lt;/code&gt; inside zsh terminal or just restart the terminal&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>ubuntu</category>
      <category>tutorial</category>
      <category>terminal</category>
      <category>zsh</category>
    </item>
    <item>
      <title>Simple Customization for Windows Terminal</title>
      <dc:creator>Du Hoang</dc:creator>
      <pubDate>Thu, 26 Aug 2021 04:36:24 +0000</pubDate>
      <link>https://forem.com/duhoang/simple-customization-for-windows-terminal-12nj</link>
      <guid>https://forem.com/duhoang/simple-customization-for-windows-terminal-12nj</guid>
      <description>&lt;p&gt;An easy step-by-step to customize your windows terminal&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Install Windows Terminal from windows Store&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install GIT (if you need it) from &lt;a href="https://git-scm.com/downloads"&gt;https://git-scm.com/downloads&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install a nerd font from &lt;a href="https://www.nerdfonts.com/font-downloads"&gt;https://www.nerdfonts.com/font-downloads&lt;/a&gt;, I choose UbuntuMono NF&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7un40vxjbptv5y1uxfw4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7un40vxjbptv5y1uxfw4.png" alt="image" width="600" height="197"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open PowerShell and paste these:&lt;br&gt;
&lt;code&gt;Install-Module posh-git -Scope CurrentUser&lt;br&gt;
Install-Module oh-my-posh -Scope CurrentUser&lt;/code&gt;&lt;br&gt;
Confirm any message using &lt;code&gt;Y&lt;/code&gt; and &lt;code&gt;A&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Update/Create PROFILE: open windows terminal and paste this&lt;br&gt;
&lt;code&gt;notepad $PROFILE&lt;/code&gt;&lt;br&gt;
accept to create one if it asked, then paste this:&lt;br&gt;
&lt;code&gt;Import-Module posh-git&lt;br&gt;
Import-Module oh-my-posh&lt;br&gt;
Set-PoshPrompt -Theme Paradox&lt;/code&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2tc37lsa7xubaumtln5h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2tc37lsa7xubaumtln5h.png" alt="image" width="255" height="62"&gt;&lt;/a&gt;&lt;br&gt;
Save it&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Paradox is the name of the theme&lt;br&gt;
Get all themes' name by using: &lt;code&gt;Get-PoshThemes&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set font &lt;code&gt;UbuntuMono NF&lt;/code&gt; of any terminal you would like to use like: Window Terminal, VS Code. &lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdhz5j239i5huc5vu1dbj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdhz5j239i5huc5vu1dbj.png" alt="image" width="269" height="92"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Result&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;In windows terminal&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuzu7yhjkc8uppz0jsalc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuzu7yhjkc8uppz0jsalc.png" alt="Customize-windows-terminal" width="800" height="458"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;With GIT&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffwt0x6uysd13048l81ns.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffwt0x6uysd13048l81ns.png" alt="Customize-windows-terminal-background" width="676" height="199"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>tutorial</category>
      <category>windows</category>
      <category>terminal</category>
      <category>customization</category>
    </item>
  </channel>
</rss>
