From 5592d4266d5caa3770c34824abe4411030439696 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Thu, 9 Jan 2025 11:13:17 -0600 Subject: [PATCH] Add Use A Different Font With iTerm2 as a Mac TIL --- README.md | 3 ++- mac/use-a-different-font-with-iterm2.md | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 mac/use-a-different-font-with-iterm2.md diff --git a/README.md b/README.md index 889a4cb..d288287 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186). -_1561 TILs and counting..._ +_1562 TILs and counting..._ See some of the other learning resources I work on: - [Ruby Operator Lookup](https://www.visualmode.dev/ruby-operators) @@ -664,6 +664,7 @@ See some of the other learning resources I work on: - [Set A Window To Its Default Zoom Level](mac/set-a-window-to-its-default-zoom-level.md) - [Specify App When Opening From Command Line](mac/specify-app-when-opening-from-command-line.md) - [Start Amphetamine Session With AppleScript](mac/start-amphetamine-session-with-applescript.md) +- [Use A Different Font With iTerm2](mac/use-a-different-font-with-iterm2.md) - [Use Default Screenshot Shortcuts With CleanShot X](mac/use-default-screenshot-shortcuts-with-cleanshot-x.md) - [View All Windows Of The Current App](mac/view-all-windows-of-the-current-app.md) - [Write System Clipboard To A File](mac/write-system-clipboard-to-a-file.md) diff --git a/mac/use-a-different-font-with-iterm2.md b/mac/use-a-different-font-with-iterm2.md new file mode 100644 index 0000000..1ff4d25 --- /dev/null +++ b/mac/use-a-different-font-with-iterm2.md @@ -0,0 +1,25 @@ +# Use A Different Font With iTerm2 + +I wanted to give [`gh-dash`](https://github.com/dlvhdr/gh-dash) a try, but +after installing and opening it up, I was seeing a bunch of `?` characters +where specialized font icons were missing. Their README recommended installing +a [`Nerd Font`](https://github.com/ryanoasis/nerd-fonts) that includes those +icons, such as [`Fira Code`](https://github.com/tonsky/FiraCode). + +I was able to install `font-fira-code-nerd-font` with homebrew: + +```bash +$ brew install font-fira-code-nerd-font +``` + +Then to get iTerm2 to start using that font, I had to change the font setting +for my current profile. + +Under the _iTerm2_ menu is _Settings..._. From there, I clicked the _Profiles_ +section. For the _Default_ profile, I went to the _Text_ tab and under _Font_ I +selected _FireCode Nerd Font Mono_ from the dropdown. + +That won't take effect on any current iTerm2 windows. Since I have everything +running through `tmux`, I could close my current window, open a new one +(`Cmd+N`), and reconnect to my existing `tmux` session. Now when I run `gh +dash`, I see all the font icons that were missing before.