add nerdfont

This commit is contained in:
AJ ONeal
2020-07-28 23:08:31 -06:00
parent 6e1de0a4ba
commit 35bbc6a138
5 changed files with 102 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
# title: nerd-font (nerdfont alias)
# homepage: https://webinstall.dev/nerdfont
# tagline: Alias for https://webinstall.dev/nerdfont
# alias: nerdfont
# description: |
# See https://webinstall.dev/nerdfont
echo "'nerd-font' is an alias for 'nerdfont'"
WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
curl -fsSL "$WEBI_HOST/nerdfont@${WEBI_VERSION:-}" | bash
+12
View File
@@ -0,0 +1,12 @@
# title: nerd-fonts (nerdfont alias)
# homepage: https://webinstall.dev/nerdfont
# tagline: Alias for https://webinstall.dev/nerdfont
# alias: nerdfont
# description: |
# See https://webinstall.dev/nerdfont
echo "The full Nerd Fonts patcher is not yet available."
echo "Want the Droid Sans 'nerdfont' in the meantime?"
echo ""
echo "Run 'webi nerdfont' instead."
echo ""
+43
View File
@@ -0,0 +1,43 @@
---
title: Nerd Font
homepage: https://github.com/ryanoasis/nerd-fonts
tagline: |
takes popular programming fonts and adds a bunch of Glyphs
---
## Cheat Sheet
> A font with a high number of extra glyphs from popular 'iconic fonts' such as
> Font Awesome ➶, Devicons ➶, Octicons ➶, and others.
![](https://github.com/ryanoasis/nerd-fonts/raw/master/images/sankey-glyphs-combined-diagram.svg)
This installs just "Droid Sans Mono for Powerline Nerd Font Complete.otf".
### Enable for Terminal.app
Find `Terminal` in the top Mac menu, then...
- => Preferences
- => Profiles
- => [Profile Name]
- => Text
- => Font
- => Change
- => Select "Droid Sans Mono for Powerline Nerd Font Complete.otf"
![](https://i.imgur.com/zNrfJBa.png)
### Where does the font go?
**Mac**:
```bash
~/Library/Fonts/
```
**Linux**:
```bash
~/.local/share/fonts/
```
+25
View File
@@ -0,0 +1,25 @@
install() {
set -e
set -u
my_nerdfont="Droid Sans Mono for Powerline Nerd Font Complete.otf"
curl -fsSLo "$my_nerdfont" \
'https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20Nerd%20Font%20Complete.otf'
my_fontdir=""
if [ -e "$HOME/Library/Fonts" ]; then
# OS X
mv "$my_nerdfont" ~/Library/Fonts/
my_fontdir="~/Library/Fonts/"
else
# Linux
mkdir -p ~/.local/share/fonts
mv "$my_nerdfont" ~/.local/share/fonts/
my_fontdir="~/.local/share/fonts/"
fi
echo "Installed $my_nerdfont to $my_fontdir"
}
install
+12
View File
@@ -0,0 +1,12 @@
# title: nerd-fonts (nerdfont alias)
# homepage: https://webinstall.dev/nerdfont
# tagline: Alias for https://webinstall.dev/nerdfont
# alias: nerdfont
# description: |
# See https://webinstall.dev/nerdfont
echo "The full Nerd Fonts patcher is not yet available."
echo "Want the Droid Sans 'nerdfont' in the meantime?"
echo ""
echo "Run 'webi nerdfont' instead."
echo ""