mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +00:00
add nerdfont
This commit is contained in:
@@ -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
|
||||
@@ -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 ""
|
||||
@@ -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.
|
||||
|
||||

|
||||
|
||||
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"
|
||||
|
||||

|
||||
|
||||
### Where does the font go?
|
||||
|
||||
**Mac**:
|
||||
|
||||
```bash
|
||||
~/Library/Fonts/
|
||||
```
|
||||
|
||||
**Linux**:
|
||||
|
||||
```bash
|
||||
~/.local/share/fonts/
|
||||
```
|
||||
@@ -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
|
||||
@@ -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 ""
|
||||
Reference in New Issue
Block a user