<?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[Stories by lgf2111 on Medium]]></title>
        <description><![CDATA[Stories by lgf2111 on Medium]]></description>
        <link>https://medium.com/@lgf2111?source=rss-9b9cbbaf132d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4Ckew9Y-Whg8YAR3J8mJjw.jpeg</url>
            <title>Stories by lgf2111 on Medium</title>
            <link>https://medium.com/@lgf2111?source=rss-9b9cbbaf132d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 20:55:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lgf2111/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Bringing Singapore’s dead radio back to life, in dialect, with Kiro]]></title>
            <link>https://medium.com/@lgf2111/bringing-singapores-dead-radio-back-to-life-in-dialect-with-kiro-f9ac5a2165d2?source=rss-9b9cbbaf132d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9ac5a2165d2</guid>
            <dc:creator><![CDATA[lgf2111]]></dc:creator>
            <pubDate>Fri, 04 Dec 2026 21:26:50 GMT</pubDate>
            <atom:updated>2026-12-04T21:28:34.415Z</atom:updated>
            <content:encoded><![CDATA[<p>Written for the Kiroween 2026 hackathon.</p><p>Many elderly Singaporeans are most comfortable in a dialect like Hokkien or Cantonese. They get by in Mandarin, a little English. The problem is that everything that used to come to them, the news, the weather, the afternoon story, now lives in apps, in languages and interfaces that were not built for them.</p><p>There is a specific history here. From 1949 to 2012, Singapore had Rediffusion (丽的呼声), a wired radio piped into half a million homes through a little brown box. It carried dialect storytellers who were household names. After the 1979 Speak Mandarin Campaign, the dialect programmes were phased out, and they never really came back.</p><p>For Kiroween’s Resurrection category, I wanted to resurrect that box. Not as nostalgia, but as something these seniors could actually use today.</p><p>The design problem: build for someone who won’t use your app</p><p>The temptation is to make “an app for seniors.” But the honest truth is they will not open an app, tap through onboarding, or log in. So I split the product in two.</p><p>The box is an old phone, locked full-screen in a brown frame, left on the shelf. Two controls: a knob to change channel, and a big “我好好 / I’m OK” button. It plays on its own.</p><p>The family phone is where every bit of complexity lives: pairing, sending messages, seeing check-ins. The family’s job, not theirs.</p><p>That reframing, a pre-configured appliance and not an app, is the whole idea.</p><p>Where Kiro actually helped</p><p>I will be specific, because “I used an AI IDE” means nothing on its own.</p><p>Device testing saved the architecture in hour one. I had Kiro drive adb against the real 2016 phone I planned to use. It could not even open modern HTTPS sites (missing root certificate) and had no CSS Grid or modern JS. If I had found that at 3am, the project was dead. Instead the box got a deliberately legacy-safe CSS build from the start.</p><p>Specs for the sharp edges, vibes for the look. I vibe-coded the visual mockup fast, which was great for discovering how the box should feel. But the logic that decides “did Ah Ma check in today, and should we alert the family?” is full of date-boundary traps. I wrote that as a Kiro spec and backed it with property-based tests (fast-check). The property “with no check-in, status flips to missed exactly at the deadline” found boundary bugs my hand-written examples missed. Same for the pairing codes: human-typed, messy, case-insensitive, no confusable characters like 0 and O.</p><p>Steering kept the dialect honest. A steering file that loads only when I edit the broadcast code holds the rules: write actual Cantonese (係/唔/嘅), not Mandarin with a label, and never invent facts in a weather or scam advisory. Gemini then reliably produced broadcasts a dialect speaker would recognize.</p><p>Hooks did the chores. Typecheck on save, run the property tests after each spec task, and my favourite, a hook that blocks any file write containing something that looks like an API key, so a secret can never land in a commit.</p><p>The result</p><p>Open the demo and you see the box and the family phone side by side. Type “Ah Ma, I’ll visit this Sunday” in English, and the box chimes and says it in Cantonese. Press I’m OK, and the family sees “pressed I’m OK at 9:14am.” It is small, and it is the point.</p><p>The radio that still speaks the dialect these seniors grew up with.</p><p>Try it: <a href="https://rediffusion-revived.vercel.app/">https://rediffusion-revived.vercel.app</a><br>Code: <a href="https://github.com/lgf2111/rediffusion-revived">https://github.com/lgf2111/rediffusion-revived</a><br>Video: <a href="https://youtu.be/PB2XLBGlvEQ">https://youtu.be/PB2XLBGlvEQ</a></p><p>Built with Kiro for Kiroween 2026.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9ac5a2165d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Deploy Flask on Vercel for Free]]></title>
            <link>https://medium.com/@lgf2111/how-to-deploy-flask-on-vercel-for-free-b1cbdfe59932?source=rss-9b9cbbaf132d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1cbdfe59932</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[flask]]></category>
            <category><![CDATA[vercel]]></category>
            <dc:creator><![CDATA[lgf2111]]></dc:creator>
            <pubDate>Thu, 18 Jul 2024 13:21:37 GMT</pubDate>
            <atom:updated>2024-07-22T08:42:08.340Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ym7_6yr6bTzPT-6KfdOLNw.png" /></figure><p>Are you looking to deploy your Flask projects on the cloud for free? I recently discovered that Vercel, my favorite platform for hosting Next.js applications, also supports hosting Python applications. Here’s a straightforward guide on how to deploy Flask on Vercel, completely free of charge.</p><blockquote>Requirements:<br>- Python version 3.12 or later<br>- Ensure your Flask project is <a href="https://vercel.com/docs/functions/runtimes/python#python-version">compatible with Python 3.12</a></blockquote><blockquote>Warning:<br>- If you’re using SQLite as your database, note that your data won’t persist between redeployments.<br>- Make sure your Python project is <a href="https://vercel.com/guides/why-does-my-serverless-function-work-locally-but-not-when-deployed#reading-from-or-writing-to-the-filesystem">small enough to fit within 500MB</a>.</blockquote><p><strong>Step 1: Generate requirements.txt</strong></p><p><a href="https://plainenglish.io/blog/how-to-generate-requirements-txt-for-your-python-project-235183799d2f">How to Generate Requirements.txt for Your Python Project</a></p><p><strong>Step 2: Add </strong><strong>vercel.json<br></strong>This configuration file is crucial for deploying Flask on Vercel. Create a vercel.json file in your project’s root directory with the following content:</p><pre>{<br>  &quot;version&quot;: 2,<br>  &quot;builds&quot;: [<br>  {<br>    &quot;src&quot;: &quot;./run.py&quot;,<br>    &quot;use&quot;: &quot;@vercel/python&quot;<br>  }<br>  ],<br>  &quot;routes&quot;: [<br>  {<br>    &quot;src&quot;: &quot;/(.*)&quot;,<br>    &quot;dest&quot;: &quot;/run.py&quot;<br>  }<br>  ]<br>}</pre><p>Replace run.py with the entry point of your Flask application (e.g., app.py or main.py).</p><p><strong>Step 3: </strong><a href="https://docs.github.com/en/get-started/quickstart/create-a-repo"><strong>Push Project to GitHub</strong></a></p><p><a href="https://docs.github.com/en/repositories/creating-and-managing-repositories/quickstart-for-repositories">Quickstart for repositories - GitHub Docs</a></p><p><strong>Step 4: </strong><a href="https://vercel.com/docs/deployments/git"><strong>Deploy on Vercel</strong></a></p><p><a href="https://vercel.com/docs/deployments/git">Deploying Git Repositories with Vercel</a></p><p>After the deployment process is complete, Vercel will provide you with a URL where your Flask application is live. Now, you can share this link and let others access your Flask project.</p><p>Here’s a demo repository you can refer to:</p><p><a href="https://github.com/lgf2111/quanta-energy">GitHub - lgf2111/quanta-energy: This project received 2nd Place for NYP SIT Club&#39;s Code Overflow 2022.</a></p><p>And here’s the live demo:</p><p><a href="https://quanta-energy.vercel.app/">Home</a></p><p>For a comprehensive video tutorial on this process, check out this video by CODING CRAFT:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FmiQmOlPF_Gs&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmiQmOlPF_Gs&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FmiQmOlPF_Gs%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/cc3f4b1a7672099f08a139435ce440c7/href">https://medium.com/media/cc3f4b1a7672099f08a139435ce440c7/href</a></iframe><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1cbdfe59932" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ChatGPT vs Bing AI vs Bard: A Comparison of AI Chatbots]]></title>
            <link>https://medium.com/@lgf2111/chatgpt-vs-bing-ai-vs-bard-a-comparison-of-ai-chatbots-9fcf588f8c50?source=rss-9b9cbbaf132d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fcf588f8c50</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[bing]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[bard-ai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[lgf2111]]></dc:creator>
            <pubDate>Sun, 21 May 2023 15:16:44 GMT</pubDate>
            <atom:updated>2023-05-21T15:16:44.461Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*dQt7nkp1lg_-9OgJ" /></figure><p>AI chatbots are becoming more popular and accessible, but which one is the best for your needs? In this article, we will compare three of the most prominent AI chatbots available today: ChatGPT, Bing AI, and Bard. We will look at their features, capabilities, strengths, and weaknesses, and see how they differ in performance, personality, and precision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Vo6XQ_eVDBuw4K4p.jpg" /></figure><h3>ChatGPT</h3><ul><li>An experimental chatbot from OpenAI that uses a powerful language model called GPT-4 to generate natural and engaging responses.</li><li>Can talk about almost any topic, from gaming to philosophy, and can also generate creative content such as poems, stories, jokes, and lyrics.</li><li>Free to use via <a href="http://chat.openai.com/">chat.openai.com</a>, but does not have access to the internet or other external sources, so it cannot provide factual information or sources for its answers; may also produce inconsistent or inaccurate responses due to its probabilistic nature.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*k47w7YdPos3HRT85" /></figure><h3>Bing AI</h3><ul><li>A chatbot from Microsoft that uses an upgraded version of ChatGPT’s technology to power its search engine.</li><li>Can answer questions, provide information, and perform web searches using natural language.</li><li>Has some additional features: can generate images based on text descriptions or keywords; can access real-time data from the internet and offer sources for its responses; and can handle multiple queries in a single conversation.</li><li>Currently in beta and requires an invitation to use. Queries are capped at 150 per day, with 15 back-and-forth exchanges each time.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*Bmdc6Jd-zvEtZ9OF" /></figure><h3>Bard</h3><ul><li>A chatbot from Google that is still in an experimental phase.</li><li>Was trained on a massive dataset of text and code, including books, articles, code, and scripts.</li><li>Can also crawl the web via Google Search to provide new information and keep its responses consistent with search results.</li><li>Claims to be able to answer any question and generate any text, but often gives vague or generic answers; sometimes repeats itself or contradicts itself; and lacks personality and humor.</li></ul><h3>Conclusion</h3><p>In conclusion, ChatGPT, Bing AI, and Bard are three AI chatbots that offer different features and capabilities. ChatGPT is the most creative and engaging, but it is not suitable for factual queries or sources. Bing AI is the most informative and versatile, but it is not widely available or unlimited. Bard is the most ambitious and comprehensive, but it is not very polished or entertaining. Depending on your preferences and needs, you may find one chatbot more suitable than the others. However, none of them are perfect or complete, and they all have room for improvement. AI chatbots are still evolving and developing, and we can expect to see more advances and innovations in the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fcf588f8c50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pyenv: The Must-Have Tool for Python Developers]]></title>
            <link>https://medium.com/@lgf2111/pyenv-the-must-have-tool-for-python-developers-441460ea805f?source=rss-9b9cbbaf132d------2</link>
            <guid isPermaLink="false">https://medium.com/p/441460ea805f</guid>
            <category><![CDATA[virtual-environment]]></category>
            <category><![CDATA[pyenv]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[lgf2111]]></dc:creator>
            <pubDate>Sat, 25 Feb 2023 16:45:41 GMT</pubDate>
            <atom:updated>2023-02-25T16:45:41.819Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ylXX5CGl2aYGWexG" /><figcaption>Photo by <a href="https://unsplash.com/@max_duz?utm_source=medium&amp;utm_medium=referral">Max Duzij</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As a Python developer, you may have encountered compatibility issues when working with different projects that require specific versions of Python. For example, you may need to work with a library or framework that only works with Python 3.9 or below. This was the case for me when I tried to use OpenAI’s Whisper, which required Python 3.9 or below. I quickly realized the importance of managing multiple versions of Python and that’s where Pyenv comes in.</p><p>Pyenv is a popular command-line tool that allows you to manage multiple versions of Python on your machine. With Pyenv, you can install and switch between different versions of Python quickly and easily, without worrying about conflicts or compatibility issues. This means you can work on different projects that require different versions of Python without having to constantly uninstall and reinstall Python.</p><p>In this tutorial, we’ll walk you through how to install Pyenv and use it to manage multiple versions of Python. We’ll cover everything from installing Pyenv to switching between versions, setting a default version, and even managing virtual environments. By the end of this tutorial, you’ll have a solid understanding of how Pyenv works and how it can help you avoid compatibility issues like the one I experienced with OpenAI’s Whisper.</p><h3>Part 0: Prerequisites</h3><blockquote>Try running these commands individually.</blockquote><blockquote>If any of these doesn’t work, brew install {dependencies}</blockquote><pre>openssl<br>readline<br>sqlite3<br>xz<br>zlib</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ctDJJI93o0QDeYjESHAitA.png" /></figure><p>The output should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IxV8XqBcF66AMr7v2qxjSw.png" /></figure><h3>Part 1: Installing Pyenv</h3><blockquote>Run this command:</blockquote><pre>curl https://pyenv.run | bash</pre><p>The command curl https://pyenv.run | bash downloads the Pyenv installation script from the internet and then executes it in a terminal to install Pyenv on your system.</p><blockquote>Open startup file (~/.zshrc) in a text editor</blockquote><p>I’ll be using TextEdit</p><pre>open ~/.zshrc</pre><blockquote>Add these lines of code somewhere in startup file</blockquote><pre>export PYENV_ROOT=&quot;$HOME/.pyenv&quot;<br>command -v pyenv &gt;/dev/null || export PATH=&quot;$PYENV_ROOT/bin:$PATH&quot;<br>eval &quot;$(pyenv init -)&quot;</pre><p>For me I like to keep my startup file organized, so I commented # Pyenv above the lines of code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K1BmzU7APxAmuL6FGrmt2A.png" /></figure><blockquote>Save the file and restart your terminal, type pyenv and hit enter</blockquote><p>You terminal should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VXS1_FMIfBbpfkEjG-utYw.png" /></figure><p>Well Done! You’d successfully installed Pyenv! Right now we’ll go through how to use Pyenv efficiently.</p><h3>Part 2: Utilizing Pyenv</h3><p>Pyenv wouldn’t be what it is without Python.</p><blockquote>To look at the list of Python versions you’re able to install, run this command:</blockquote><pre>pyenv install --list</pre><p>Your terminal should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bn7MJpiI-G-5q6X_-niXeg.png" /></figure><blockquote>To install a Python version, run this command:</blockquote><pre>pyenv install {version}</pre><p>I’ll be installing the latest stable version currently, which will be 3.11.2</p><p>The terminal should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HJ7FCiwDxk65gjeelKloVw.png" /></figure><p>Installing a specific version of Python using Pyenv may take some time because Pyenv will build Python from source code. The time required for this process depends on the speed of your machine and the version of Python you are installing. However, once the installation is complete, you will have the specified version of Python available on your local machine, ready to use. For example, if you install Python 3.11.2, you will be able to use this version of Python for your development work.</p><blockquote>Find the Python version your computer is currently using by running this command:</blockquote><pre>pyenv version</pre><p>Your terminal should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1P4dh7P_dmqWrZ4Le_fEWg.png" /></figure><blockquote>List the Python versions your computer currently has by running this command:</blockquote><pre>pyenv versions</pre><p>Your terminal should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jNKMM5rBu00lJOWA6blj4Q.png" /></figure><blockquote>To change Python version globally/locally, run either of these commands:</blockquote><pre># change Python version globally (whole terminal)<br>pyenv global {version}<br><br># change Python version locally (within the directory)<br>pyenv local {version}</pre><p>I’d switched my terminal’s python to version 3.11.2 in just one simple line:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IO6ndOIPRhGL6rfy4m1NbQ.png" /></figure><h3>Congrats!</h3><p>You have successfully installed Pyenv and learned how to use it to manage multiple versions of Python on your local machine. Pyenv is a must-have tool for Python developers who work on multiple projects that require different versions of Python. With Pyenv, you can easily switch between different Python versions and ensure compatibility with different libraries and frameworks. Pyenv is also a great tool for testing and development, allowing you to test your code with different versions of Python and ensure that it works as expected. I hope this tutorial has been helpful in getting you started with Pyenv and managing your Python installations like a pro!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=441460ea805f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step-by-Step: How to Personalize Your macOS Terminal for a More Productive Workflow]]></title>
            <link>https://medium.com/@lgf2111/step-by-step-how-to-personalize-your-macos-terminal-for-a-more-productive-workflow-8b8ef46a91df?source=rss-9b9cbbaf132d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b8ef46a91df</guid>
            <category><![CDATA[themes]]></category>
            <category><![CDATA[plugins]]></category>
            <category><![CDATA[customization]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[mac]]></category>
            <dc:creator><![CDATA[lgf2111]]></dc:creator>
            <pubDate>Sat, 25 Feb 2023 11:30:13 GMT</pubDate>
            <atom:updated>2023-02-25T13:31:27.989Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iODkw7cKC4SYEmgR" /><figcaption>Photo by <a href="https://unsplash.com/de/@afgprogrammer?utm_source=medium&amp;utm_medium=referral">Mohammad Rahmani</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you’re a macOS user, chances are you spend a lot of time in the Terminal. Whether you’re a developer, system administrator, or just someone who likes to tinker with their computer, the Terminal is a powerful tool that can help you get things done more efficiently. But let’s face it, the default Terminal settings can be a bit uninspiring. The black background with white text gets the job done, but it’s not exactly easy on the eyes or conducive to productivity.</p><p>That’s where customization comes in. By personalizing your macOS Terminal, you can create a more pleasant and productive working environment. In this step-by-step tutorial, we’ll show you how to customize your Terminal from top to bottom. We’ll cover everything from choosing the perfect font to adding color to your prompt. By the end of this tutorial, you’ll have a customized Terminal that reflects your style and makes your workflow more efficient. So let’s get started!</p><h3>Step 1: Install Homebrew</h3><blockquote><a href="https://brew.sh/">Homebrew</a> installs <a href="https://formulae.brew.sh/formula/"><strong>the stuff you need</strong></a> that Apple (or your Linux system) didn’t.</blockquote><blockquote>Run this code in a macOS Terminal or Linux shell prompt.</blockquote><pre>/bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;</pre><p>When you run the command, it will download the Homebrew installation script from the internet and then run the script on your Mac. The script will install Homebrew to a specific location on your Mac, which makes it easy to install new software without needing special permissions.</p><p>The script is designed to be safe to run and will give you a summary of what it plans to do before it makes any changes to your system. Overall, running this command is an easy way to install Homebrew on your Mac and start using it to manage software packages and dependencies.</p><p>Your terminal should provide with this output:</p><figure><img alt="Image of Terminal" src="https://cdn-images-1.medium.com/max/1024/1*wU8qdDYxe8Zwiq286oU3vw.png" /></figure><blockquote>Run these 2 commands in the terminal to add Homebrew to your PATH</blockquote><pre>(echo; echo &#39;eval &quot;$(/opt/homebrew/bin/brew shellenv)&quot;&#39;) &gt;&gt; /Users/$(whoami)/.zprofile<br>eval &quot;$(/opt/homebrew/bin/brew shellenv)&quot;</pre><p>The first command adds a new line of text to a configuration file called .zprofile that tells your terminal to use Homebrew.</p><p>The second command sets some environment variables that make it easy to use Homebrew commands in your terminal.</p><p>Overall, running these commands is an important step to configure your terminal to use Homebrew, which will allow you to easily install and manage software packages on your Mac.</p><h3>Step 2: Install oh-my-zsh</h3><blockquote><a href="https://ohmyz.sh/">Oh My Zsh</a> is a delightful, open source, community-driven framework for managing your Zsh configuration.</blockquote><blockquote>Run one of the following commands in your terminal. You can install this via the command-line with either curl or wget.</blockquote><pre>#install via curl<br>sh -c &quot;$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)&quot;<br><br>#install via wget<br>sh -c &quot;$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)&quot;</pre><p>Either of these commands is an easy way to install Oh My Zsh on your Mac, which can make your terminal more colorful and customizable.</p><p>Your terminal should now look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dpXryJYCxfQggQgAizxOkA.png" /></figure><p>It’s not over yet, we can still make it more powerful, behold…</p><h3>Step 3: Install Powerlevel10k</h3><blockquote><a href="https://github.com/romkatv/powerlevel10k">Powerlevel10k</a> is a theme for Zsh. It emphasizes <a href="https://github.com/romkatv/powerlevel10k#uncompromising-performance">speed</a>, <a href="https://github.com/romkatv/powerlevel10k#extremely-customizable">flexibility</a> and <a href="https://github.com/romkatv/powerlevel10k#configuration-wizard">out-of-the-box experience</a>.</blockquote><blockquote>Run these commands to install powerlevel10k:</blockquote><pre>brew install romkatv/powerlevel10k/powerlevel10k<br>echo &quot;source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme&quot; &gt;&gt;~/.zshrc</pre><p>The first command, uses Homebrew to install a custom theme called Powerlevel10k for your terminal. This theme is designed to make your terminal more customizable and easier to use.</p><p>The second command adds a new line of text to a configuration file called .zshrc. This line tells your terminal to use the Powerlevel10k theme that you just installed.</p><p>Overall, running these commands is an easy way to install and use the Powerlevel10k theme for your terminal. This can make your terminal more visually appealing and easier to navigate, which can be especially helpful if you spend a lot of time working in the terminal.</p><blockquote>Run this command to restart zsh:</blockquote><pre>exec zsh</pre><p>This is a quick and easy way to start a new Zsh session in your terminal.</p><p>Your terminal should now look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ltpJBQKiDmHgfei0jVq4Nw.png" /></figure><p>Notice how the diamond doesn’t look like one? That’s because a specific font needs to be used to use powerlevel10k smoothly.</p><h3>Step 4: Install MelsoLGS font</h3><blockquote>Gorgeous monospace font designed by Jim Lyles for Bitstream, customized by the same for Apple, further customized by André Berg, and finally patched by yours truly with customized scripts originally developed by Ryan L McIntyre of Nerd Fonts. Contains all glyphs and symbols that Powerlevel10k may need. Battle-tested in dozens of different terminals on all major operating systems.</blockquote><blockquote>Download these four ttf files:</blockquote><ul><li><a href="https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf">MesloLGS NF Regular.ttf</a></li><li><a href="https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf">MesloLGS NF Bold.ttf</a></li><li><a href="https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf">MesloLGS NF Italic.ttf</a></li><li><a href="https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf">MesloLGS NF Bold Italic.ttf</a></li></ul><blockquote>Double-click on each file and click “Install”. This will make MesloLGS NF font available to all applications on your system.</blockquote><blockquote>Click on Keep Both when being prompted.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FzWax0YHQnk9j97v-peaRg.png" /></figure><blockquote>Activate the font</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3vO9iqncgLI5zO2lCJVkHQ.png" /></figure><blockquote>Open <em>Terminal → Preferences → Profiles → Text</em>, click <em>Change</em> under <em>Font</em> and select MesloLGS NF family.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1o9eYO-kheThVYhbFZxX1A.png" /></figure><p>The diamond should now look like a diamond:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iGHuyM-hxAITQB85AvEI3A.png" /></figure><blockquote>Customize to your personal preferences</blockquote><p>This is my configuration: yyyy2111111232221n1y</p><p>Your terminal should now look like what you had configured:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dsNYRVa3mNYZ8ta28dahkg.png" /></figure><blockquote>You can always customize again by running this command:</blockquote><pre>p10k configure</pre><p>This command accesses the builtin configuration wizard right from your terminal.</p><p>You’d successfully customised the UI of your terminal, now it’s time for the UX of it.</p><h3>Step 5: Plugins (Optional)</h3><blockquote>Oh My Zsh comes bundled with <a href="https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins">plugins</a>, which allow you to take advantage of functionality of many sorts to your shell just by enabling them. They are each documented in the README file in their respective plugins/ folder.</blockquote><p>There is a whole list of plugins you can use, these are my top few:</p><ol><li><a href="https://github.com/zsh-users/zsh-autosuggestions">zsh-autosuggestions</a></li><li><a href="https://github.com/zsh-users/zsh-syntax-highlighting">zsh-syntax-highlighting</a></li></ol><blockquote>Run these commands to install these plugins</blockquote><pre>brew install zsh-autosuggestions<br>brew install zsh-syntax-highlighting</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AFIC7yUV7ZxPpx7y4BIe-w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3d04cU6Sn5fsDNHPSHzcuw.png" /></figure><p>Running these commands is an easy way to install and use two helpful plugins for your terminal. Zsh Autosuggestions can speed up your typing and reduce errors, while Zsh Syntax Highlighting can make your commands easier to read and understand. Both plugins can improve your productivity and make using the terminal more enjoyable.</p><p>Notice the line To activate the {plugin}, add the following at the end of your .zshrc:..., take down the line from each of the plugins (2 in total), we will need them later on.</p><blockquote>Configure ~/.zshrc to activate plugin every terminal session</blockquote><p>You can use any text editor to do this, I’ll be using TextEdit in this tutorial.</p><p>1. Run this command</p><pre>open ~/.zshrc</pre><p>2. Add these code in the end of the file</p><pre><br># Activate Plugins<br>source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh<br>source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aHd_Eih0JWf_q43x-Xblnw.png" /></figure><p>These 2 lines of code are based on what output you’d gotten from step 5.</p><p>3. Save the file, and run exec zsh to restart terminal.</p><h3>Congratulations, you are now all set!</h3><p>By following the steps in this tutorial, you have learned how to customize your macOS Terminal to your liking, and have installed some helpful plugins to make your terminal experience even better.</p><p>By changing the color scheme, installing a custom font, and adding some plugins, you have transformed your terminal from a basic black and white window into a powerful and personalized tool. You can now work more efficiently and enjoyably in the terminal, and have the skills to further customize your setup as your needs and preferences change.</p><p>Remember, the Terminal is a powerful tool that can be customized in many different ways. Don’t be afraid to experiment and try new things. You can always undo changes or start over if something doesn’t work out.</p><p>Thank you for reading this tutorial, and I hope you find it helpful in your journey to become a Terminal power user!</p><h4>Final Words</h4><p>Yes I indeed know myself too, that Step 5 is not going according to that the documentation has mentioned. I’d tried to follow through the documentation and it outputs error and therefore this is an alternative solution I’d found out. Feel free to comment your idea and/or remarks below!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b8ef46a91df" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>