mirror of
https://github.com/jbranchaud/til
synced 2026-01-17 14:08:01 +00:00
Compare commits
4 Commits
5d7775031e
...
31cc607d34
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31cc607d34 | ||
|
|
2028f6cb09 | ||
|
|
5615da920f | ||
|
|
c60c63f554 |
@@ -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).
|
||||
|
||||
_1576 TILs and counting..._
|
||||
_1577 TILs and counting..._
|
||||
|
||||
See some of the other learning resources I work on:
|
||||
- [Ruby Operator Lookup](https://www.visualmode.dev/ruby-operators)
|
||||
@@ -195,7 +195,7 @@ See some of the other learning resources I work on:
|
||||
- [Aliasing An Ansible Host](devops/aliasing-an-ansible-host.md)
|
||||
- [Allow Cross-Origin Requests To Include Cookies](devops/allow-cross-origin-requests-to-include-cookies.md)
|
||||
- [Allow HTTPS Through Your UFW Firewall](devops/allow-https-through-your-ufw-firewall.md)
|
||||
- [Check For Cached Site Assocation File For iOS](devops/check-for-cached-site-association-file-for-ios.md)
|
||||
- [Check For Cached Site Association File For iOS](devops/check-for-cached-site-association-file-for-ios.md)
|
||||
- [Check The Status of All Services](devops/check-the-status-of-all-services.md)
|
||||
- [Check The Syntax Of nginx Files](devops/check-the-syntax-of-nginx-files.md)
|
||||
- [Connect To An RDS PostgreSQL Database](devops/connect-to-an-rds-postgresql-database.md)
|
||||
@@ -767,7 +767,7 @@ See some of the other learning resources I work on:
|
||||
- [Check If Clusters Are Upgrade Compatible](postgres/check-if-clusters-are-upgrade-compatible.md)
|
||||
- [Check If The Local Server Is Running](postgres/check-if-the-local-server-is-running.md)
|
||||
- [Check If User Role Exists For Database](postgres/check-if-user-role-exists-for-database.md)
|
||||
- [Check Table For Any Oprhaned Records](postgres/check-table-for-any-orphaned-records.md)
|
||||
- [Check Table For Any Orphaned Records](postgres/check-table-for-any-orphaned-records.md)
|
||||
- [Checking Inequality](postgres/checking-inequality.md)
|
||||
- [Checking The Type Of A Value](postgres/checking-the-type-of-a-value.md)
|
||||
- [Clear The Screen In psql](postgres/clear-the-screen-in-psql.md)
|
||||
@@ -1545,6 +1545,7 @@ See some of the other learning resources I work on:
|
||||
- [Killing A Frozen SSH Session](unix/killing-a-frozen-ssh-session.md)
|
||||
- [Last Argument Of The Last Command](unix/last-argument-of-the-last-command.md)
|
||||
- [Less With Style](unix/less-with-style.md)
|
||||
- [List All Fonts On Your Machine](unix/list-all-fonts-on-your-machine.md)
|
||||
- [List All The Enabled ZSH Options](unix/list-all-the-enabled-zsh-options.md)
|
||||
- [List All Users](unix/list-all-users.md)
|
||||
- [List Files In A Single Column](unix/list-files-in-a-single-column.md)
|
||||
|
||||
24
unix/list-all-fonts-on-your-machine.md
Normal file
24
unix/list-all-fonts-on-your-machine.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# List All Fonts On Your Machine
|
||||
|
||||
In trying to figure out what _FiraCode_ font I have installed on my machine
|
||||
and what it is called, I came across [this StackOverflow
|
||||
answer](https://stackoverflow.com/a/52789662/535590) which shares the
|
||||
following one-liner:
|
||||
|
||||
```bash
|
||||
$ fc-list | awk '{$1=""}1' | cut -d: -f1 | sort | uniq
|
||||
```
|
||||
|
||||
This uses `fc-list` to get the names of all the fonts available on your
|
||||
machine. This seems to work on both Linux and Mac. Through a series of `awk`,
|
||||
`cut`, and `sort | uniq`, this command produces a clean, easily-browsed list
|
||||
of fonts.
|
||||
|
||||
I like to take this a step further by piping it all to `fzf` where I can then
|
||||
narrow down the output to just lines that match _FiraCode_.
|
||||
|
||||
```bash
|
||||
$ fc-list | awk '{$1=""}1' | cut -d: -f1 | sort | uniq | fzf
|
||||
```
|
||||
|
||||
See also [`system_profiler SPFontsDataType`](https://apple.stackexchange.com/questions/35852/list-of-activated-fonts-with-shell-command-in-os-x/243746#243746).
|
||||
Reference in New Issue
Block a user