dotfiles/tasks/linux.py

51 lines
1.3 KiB
Python
Raw Normal View History

2014-11-11 14:32:13 -07:00
import os
from invoke import ctask
2014-11-11 14:32:13 -07:00
from util import RESOURCES_DIRECTORY
@ctask(default=True)
def setup(ctx):
apt_get(ctx)
2014-10-10 16:56:34 -06:00
get_sbt(ctx)
2014-10-10 16:56:34 -06:00
linux_pacakges = ('zsh', 'tmux', 'emacs24-nox', 'nmap', 'scala', 'default-jdk',
'default-jre', 'python-virtualenv', 'htop', 'netcat', 'wget',
'zlib1g-dev', 'libxml2-dev', 'libxslt1-dev', 'python-dev',
'libncurses5-dev', 'xbindkeys', 'python3-dev', 'xclip',
2014-11-25 09:27:55 -07:00
'silversearcher-ag', 'npm', 'xdotool', 'gconf-editor',
2014-12-06 13:33:56 -07:00
'dropbox', 'offlineimap', 'mu4e' 'fonts-droid' 'fonts-noto',
'gnutls-bin', 'libgmime-2.6-, 'libxapian-dev')
@ctask
def apt_get(ctx):
install_command = 'sudo apt-get -y install'
for package in linux_pacakges:
ctx.run('{0} {1}'.format(install_command, package), pty=False)
2014-10-10 16:56:34 -06:00
@ctask
def get_sbt(ctx):
ctx.run('wget http://dl.bintray.com/sbt/debian/sbt-0.13.5.deb '
'--output-document=sbt.deb; sudo dpkg -i sbt.deb; '
'sudo apt-get update; sudo apt-get install sbt; rm sbt.deb')
2014-11-11 14:32:13 -07:00
@ctask
def get_spotify(ctx):
pass
2014-11-25 09:27:55 -07:00
@ctask
def setup_sources(ctx):
pass
2014-11-11 14:32:13 -07:00
@ctask
def monaco(ctx):
ctx.run("sudo cp {0} /usr/share/fonts/fontfiles".format(
os.path.join(RESOURCES_DIRECTORY, "Monaco-Powerline.otf")
))
ctx.run("sudo fc-cache -fv")