mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-11-25 16:47:37 +02:00
Merge branch '0.2.1'
This commit is contained in:
commit
792395c688
25
install.sh
Executable file
25
install.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Set source and target directories
|
||||
powerline_fonts_dir="${PWD}/patched-fonts"
|
||||
|
||||
find_command="find \"$powerline_fonts_dir\" \( -name '*.[o,t]tf' -or -name '*.pcf.gz' \) -type f -print0"
|
||||
|
||||
if [[ $(uname) == 'Darwin' ]]; then
|
||||
# MacOS
|
||||
font_dir="$HOME/Library/Fonts"
|
||||
else
|
||||
# Linux
|
||||
font_dir="$HOME/.fonts"
|
||||
mkdir -p "$font_dir"
|
||||
fi
|
||||
|
||||
# Copy all fonts to user fonts directory
|
||||
eval "$find_command" | xargs -0 -I % cp "%" "$font_dir/"
|
||||
|
||||
# Reset font cache on Linux
|
||||
if [[ -n $(which fc-cache) ]]; then
|
||||
fc-cache -f "$font_dir"
|
||||
fi
|
||||
|
||||
echo "All fonts installed to $font_dir"
|
11
readme.md
11
readme.md
@ -1,4 +1,4 @@
|
||||
nerd-filetype-glyphs-fonts-patcher v0.2.0
|
||||
nerd-filetype-glyphs-fonts-patcher v0.2.1
|
||||
=========================================
|
||||
|
||||
* A python fontforge command line script to patch any font
|
||||
@ -48,6 +48,15 @@ See: [Font Patcher](#font-patcher) for usage
|
||||
| Ubuntu Mono derivative Powerline Plus Nerd File Types Mono | 1000 |
|
||||
| Ubuntu Mono Plus Nerd File Types Mono | 1000 |
|
||||
|
||||
## Font Install Script (Linux and Mac OS X)
|
||||
|
||||
> ./install.sh
|
||||
|
||||
### Examples
|
||||
|
||||
./install.sh
|
||||
All fonts installed to /home/ryan/.fonts
|
||||
|
||||
## Font Patcher
|
||||
|
||||
Patching the font of your own choosing for use with the [vim-webdevicons](https://github.com/ryanoasis/vim-webdevicons) vim plugin:
|
||||
|
Loading…
Reference in New Issue
Block a user