Skip to content

Instantly share code, notes, and snippets.

@atmos
Created July 1, 2013 23:15
Show Gist options
  • Save atmos/5905477 to your computer and use it in GitHub Desktop.
Save atmos/5905477 to your computer and use it in GitHub Desktop.
for @indirect
$home = '/Users/atmos'
$ni_home = "${home}/Documents/Native Instruments"
$dotfiles = "${home}/p/dotfiles"
file {
["${home}/.vimswap", $dotfiles, "${home}/Dropbox"]:
ensure => directory;
}
repository { $dotfiles:
path => $dotfiles,
source => 'atmos/dotfiles',
require => File[$dotfiles]
}
file { ["${home}/.gvimrc", "${home}/.vimrc" ]:
ensure => link,
force => true,
target => "${dotfiles}/vim/gvimrc",
require => Repository[$dotfiles]
}
file { $ni_home:
ensure => link,
force => true,
target => "${home}/Dropbox/Native Instruments",
require => Repository[$dotfiles]
}
file { "${home}/.boxen":
ensure => link,
force => true,
target => "${dotfiles}/dot.boxen",
require => Repository[$dotfiles]
}
file { "${home}/.vim":
ensure => link,
force => true,
target => "${dotfiles}/vim/dotvim",
require => Repository[$dotfiles]
}
file { '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin':
ensure => absent,
force => true
}
# I don't differentiate between login/non shells.
file { ["${home}/.bash_profile", "${home}/.bashrc"]:
ensure => link,
target => "${dotfiles}/bash/main.sh",
require => Repository[$dotfiles]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment