diff --git a/Readme.md b/Readme.md index 2b91275..c7397ed 100644 --- a/Readme.md +++ b/Readme.md @@ -25,6 +25,7 @@ cd ~/dotfiles && git pull && ./sync.py * Dotfiles syncronization (`sync.py`). * Sensible OS X defaults (`setup/osx.sh`). * Sublime Text 2 settings syncronization and packages autoinstall (`setup/sublime-settings.sh` and `setup/sublime-packages.sh`). +* Consolas font install script (`setup/consolas.sh`) * Bash4 install script (`setup/bash.sh`) * Homebrew bootstrap (`setup/brew.sh`) diff --git a/setup/consolas.sh b/setup/consolas.sh new file mode 100755 index 0000000..7e09de4 --- /dev/null +++ b/setup/consolas.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# Press "Intall font" button when font dialog opens +# Based on http://blog.ikato.com/post/15675823000/how-to-install-consolas-font-on-mac-os-x + +brew install cabextract +TMPDIR=`mktemp -d` && { + cd $TMPDIR + curl -O http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe + cabextract PowerPointViewer.exe + cabextract ppviewer.cab + open -W CONSOLA*.TTF + rm -rf $TMPDIR +}