bump .emacs.d. add enable locate. install mactex as cask.

This commit is contained in:
Ivan Malison 2014-10-28 14:09:59 -07:00
parent 0b8cfddcb7
commit 8cab4b425b
2 changed files with 11 additions and 4 deletions

@ -1 +1 @@
Subproject commit 819c3eb8aea12b1d25b2b466a445f813c2a65d82 Subproject commit 9fa143f9ab30546a2f5cc6673cc90a800159e1f2

View File

@ -22,7 +22,7 @@ macvim_install = ("macvim --override-system-vim --custom-system-icons "
"--enable-pythoninterp --enable-perlinterp --enable-cscope") "--enable-pythoninterp --enable-perlinterp --enable-cscope")
ESSENTIAL = ( ESSENTIAL = (
"emacs --cocoa --srgb --with-x", "tmux", "python --with-brewed-openssl", "emacs --cocoa --srgb --with-x", "tmux", "python --with-brewed-openssl",
"htop", "zsh", "make", macvim_install "htop", "zsh", "make"
) )
BASICS = ( BASICS = (
"findutils", "coreutils", "binutils", "diffutils", "ed --default-names", "findutils", "coreutils", "binutils", "diffutils", "ed --default-names",
@ -38,9 +38,10 @@ SHOULD_INSTALL = (
) )
MISC = ("file-formula", "less", "openssh --with-brewed-openssl", MISC = ("file-formula", "less", "openssh --with-brewed-openssl",
"perl518", "rsync", "svn", "unzip", "docker", "boot2docker", "pandoc", "perl518", "rsync", "svn", "unzip", "docker", "boot2docker", "pandoc",
"mercurial", "ctags-exuberant") "mercurial", "ctags-exuberant", macvim_install)
CASKS = ('caffeine', 'flux', 'google-chrome', 'iterm2', 'spotify', 'synergy', CASKS = ('caffeine', 'flux', 'google-chrome', 'iterm2', 'spotify', 'synergy',
'virtualbox', 'xquartz', 'slate', 'java', 'vlc', 'seil', 'karabiner') 'virtualbox', 'xquartz', 'slate', 'java', 'vlc', 'seil', 'karabiner',
'mactex')
@ctask @ctask
def osx_config(ctx): def osx_config(ctx):
@ -51,6 +52,7 @@ def osx_config(ctx):
@ctask @ctask
def brew_cask(ctx): def brew_cask(ctx):
ctx.run('brew update')
ctx.run('brew install caskroom/cask/brew-cask') ctx.run('brew install caskroom/cask/brew-cask')
for cask in CASKS: for cask in CASKS:
ctx.run('brew cask install {0}'.format(cask)) ctx.run('brew cask install {0}'.format(cask))
@ -63,6 +65,7 @@ def get_brew(ctx):
@ctask @ctask
def brew_install(ctx): def brew_install(ctx):
ctx.run('brew update')
for package_name in ESSENTIAL + BASICS + SHOULD_INSTALL + MISC: for package_name in ESSENTIAL + BASICS + SHOULD_INSTALL + MISC:
ctx.run('brew install {0}'.format(package_name)) ctx.run('brew install {0}'.format(package_name))
@ -121,3 +124,7 @@ def enable_hyper(ctx):
def get_command_line_tools(ctx): def get_command_line_tools(ctx):
if not util.command_exists('gcc'): if not util.command_exists('gcc'):
ctx.run('xcode-select --install') ctx.run('xcode-select --install')
@ctask
def enable_locate(ctx):
ctx.run('sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist')