Last active 5 hours ago
Nerd Fonts patches developer targeted fonts with a high number of glyphs (icons). Specifically to add a high number of extra glyphs from popular ‘iconic fonts’ such as Font Awesome, Devicons, Octicons, and others.
0
0
1
| 1 | #!/usr/bin/env bash |
| 2 | set -Eeuo pipefail |
| 3 | |
| 4 | DEST='/usr/local/share/fonts/nerd-fonts' |
| 5 | API='https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest' |
| 6 | |
| 7 | if [[ ! -t 0 ]]; then echo 'Jalankan secara interaktif di terminal.' >&2; exit 1; fi |
| 8 | if [[ $EUID -eq 0 ]]; then echo 'Jalankan sebagai user biasa (tanpa sudo); script akan meminta sudo saat perlu.' >&2; exit 1; fi |
| 9 | for cmd in curl python3 tar find mktemp sudo fc-cache; do |
| 10 | if ! command -v "$cmd" >/dev/null 2>&1; then |