Skip to content

Instantly share code, notes, and snippets.

@tranduydat
Last active August 3, 2018 14:24
Show Gist options
  • Save tranduydat/19e416e0007f1800b8cf86cd93132acc to your computer and use it in GitHub Desktop.
Save tranduydat/19e416e0007f1800b8cf86cd93132acc to your computer and use it in GitHub Desktop.
Script auto install necessary fonts for Spacemacs
#!/bin/sh
# Userland mode (~$USER/), (~/).
# ~/.fonts is now deprecated and that
#FONT_HOME=~/.fonts
# ~/.local/share/fonts should be used instead
FONT_HOME=~/.local/share/fonts
echo "installing fonts at $PWD to $FONT_HOME"
mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro"
# find "$FONT_HOME" -iname '*.ttf' -exec echo '{}' \;
(git clone \
--branch release \
--depth 1 \
'https://github.com/adobe-fonts/source-code-pro.git' \
"$FONT_HOME/adobe-fonts/source-code-pro" && \
fc-cache -f -v "$FONT_HOME/adobe-fonts/source-code-pro")
# install nanum fonts to fix powerline wrong size.
sudo apt-get install fonts-powerline
sudo apt install fonts-nanum -y
# clean fonts cache
sudo fc-cache -f -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment