Skip to content

Instantly share code, notes, and snippets.

@awaxa
Created July 7, 2014 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awaxa/96d36d68023972a1363c to your computer and use it in GitHub Desktop.
Save awaxa/96d36d68023972a1363c to your computer and use it in GitHub Desktop.
boxen powerline fonts manifests
# 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,
}
}
# 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