Created
July 7, 2014 01:38
-
-
Save awaxa/96d36d68023972a1363c to your computer and use it in GitHub Desktop.
boxen powerline fonts manifests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# installs powerline fonts | |
class powerline { | |
$fb = "/Users/${::boxen_user}/Library/Fonts" | |
$src = "${::boxen::config::srcdir}/powerline-fonts" | |
repository { "${src}": | |
source => 'Lokaltog/powerline-fonts', | |
} | |
$fonts = [ | |
'SourceCodePro/Sauce Code Powerline Black.otf', | |
'SourceCodePro/Sauce Code Powerline Bold.otf', | |
'SourceCodePro/Sauce Code Powerline ExtraLight.otf', | |
'SourceCodePro/Sauce Code Powerline Light.otf', | |
'SourceCodePro/Sauce Code Powerline Medium.otf', | |
'SourceCodePro/Sauce Code Powerline Regular.otf', | |
'SourceCodePro/Sauce Code Powerline Semibold.otf', | |
] | |
powerline::install { $fonts: | |
s => $src, | |
f => $fb, | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# installs a font file | |
define powerline::install ( $s, $f ) { | |
$font = split($name, '/') | |
$f_name = $font[1] | |
file { "${f}/${f_name}": | |
ensure => file, | |
source => "${s}/${name}", | |
require => Repository[$s], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment