Skip to content

Instantly share code, notes, and snippets.

@marcora
Created September 15, 2015 03:24
Show Gist options
  • Star 19 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save marcora/cb37b2432c072e8e9d77 to your computer and use it in GitHub Desktop.
Save marcora/cb37b2432c072e8e9d77 to your computer and use it in GitHub Desktop.
Install Adobe Source Code Pro font on Linux
#!/bin/sh
echo "installing fonts at $PWD to ~/.fonts/"
mkdir -p ~/.fonts/adobe-fonts/source-code-pro
git clone https://github.com/adobe-fonts/source-code-pro.git ~/.fonts/adobe-fonts/source-code-pro
# find ~/.fonts/ -iname '*.ttf' -exec echo \{\} \;
fc-cache -f -v ~/.fonts/adobe-fonts/source-code-pro
echo "finished installing"
@bisgardo
Copy link

Thanks! mkdir -p ~/.fonts/adobe-fonts/source-code-pro should be just mkdir -p ~/.fonts/adobe-fonts because fontconfig automatically creates .uuid files. This makes the git command fail because the dir is nonempty.

@xsbee
Copy link

xsbee commented May 21, 2022

How much of a nerd do you have to be to clone a entire git repository with mostly rubbish to just install a font?

@matu3ba
Copy link

matu3ba commented Nov 24, 2022

Thanks, very useful. However, I'd recommend to use --depth 1

@ThomasFrans
Copy link

Thanks, this was very helpful. Can't believe you have to manually install it on Kali. This helped a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment