
Full Stack Data Dev.
Search for a command to run...

Full Stack Data Dev.
No comments yet. Be the first to comment.
Simple API Lockdown Introduction The previous article reviewed how to set and read environment variables. We'll use that knowledge and set up an API Key as an environment variable for authorization in a .NET Web API Project. Keys are a variable you w...

Creating and Reading ENVs

Introduction This article is the start of a series on how to build an API using the .NET Framework. I'm sticking with .NET 6, it is the latest Long-Term-Support (LTS) Version. I'll be using Visual Studio for Mac as my IDE. Before you start yelling, ...

Introduction This article will setup a basic Hello World FastAPI project running in Docker. The purpose is to start off small before starting on a full real world project. What and Why Docker is a containerization platform. Docker combines applica...

Introduction This article will continue our journey and connect a FastAPI project to a SQL Server database. We'll walk through a full CRUD (Create, Read, Update, Delete) example of saving data through our FastAPI project to a database. We'll work ...

First things first, I use iTERM2 as my terminal replacement on macOS.
/bin/zsh.echo \$SHELL.
The output should be: /bin/zsh.Zsh is configurable by the ~/.zshrc file. OH MY ZSH is a framework for managing your zsh configurations. Let's get this installed and see up all the cool stuff.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install --cask iterm2
What is the
--caskyou ask?“To install, drag this icon…” no more. Homebrew Cask installs macOS apps, fonts and plugins and other non-open source software. Read More
brew install git
The install is as easy as executing the curl statement on the website.
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
With the framework installed, open the open ~/.zshrc (to open using TextEdit), code ~/.zshrc (to open using VS Code), or vim ~/.zshrc (to open using Vim) review and modify any zsh properties to your liking.
I'm using the 'itsJCs-agnoster' theme:
ZSH_THEME="itsJCs-agnoster".
This theme is a fork off the original 'agnoster' theme that I customized for myself. You can clone the theme project from github. The downloaded theme must be copied into the hidden .oh-my-zsh home directory in order to read it: ~/.oh-my-zsh/themes.
The catch with my theme is that it requires Powerline fonts to support the icons shown in the terminal. The following installation steps on the GitHub page will install the required fonts.
git clone https://github.com/powerline/fonts.git --depth=1cd fonts ./install.shcd .. rm -rf fontsThe list of installed fonts is available on the GitHub page. I like Source Code Pro for Powerline
To activate the fonts, you'll need to change the fonts in your iTerms preferences.
Here is a list of my other custom settings:
You can export your preferences as JSON when you find the settings that suit you best:
Profiles > Text > Non-ASCII Font: Source Code Pro for Powerline, 15pt, Medium
Profiles > Text > Font: Vertical Height = 100
To test if your terminal and font support it, check that all the necessary characters are supported by copying the following command to your terminal: echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699". The result should look like this:

Update export path for node modules in your ~/.zshrc file:
#NODE MODULES EXPORT
export PATH="$HOME/.npm-packages/bin:$PATH"
Your npm packages directory may be different. This is a custom path I have them installing into.
Removing username@hostname from command prompt can be done by adding the following to the .zshrc file:
DEFAULT_USER=`whoami`
# Those are back ticks, not single quotes!
If you use the integrated terminal in VS Code, you will also need to add the Powerline font you used to share the same font compatibility. You can add the font by going into VS Code settings and add the Powerline font to the font family section.

The settings can also be exported/ modified via the following ID:
terminal.integrated.fontFamily: 'Cousine for Powerline'
Before font setup:

After font setup:

Enjoy swapping themes, fonts, colors to your liking.