Efficiency

This commit is contained in:
Jake Howard 2016-02-09 22:20:35 +00:00
parent a278dba74e
commit ff5e7a9f7d
4 changed files with 9 additions and 10 deletions

View file

@ -11,8 +11,9 @@ EXEC_ORDER = [
add_apt_sources,
add_apt_repos,
update,
apt_install_extras,
run_custom_installs,
update,
apt_install_extras,
install_atom_packages,
export_atom_config,
install_configs

View file

@ -3,6 +3,7 @@
"insync",
"kodi",
"mutate",
"nodejs",
"owncloud-client",
"virtualbox-5.0",
"zeal"

View file

@ -12,11 +12,6 @@ echo ">> Installing Packages..."
dpkg -i atom.deb
dpkg -i astrill.deb
echo ">> Installing Apt Packages"
apt-get install nodejs -y
echo ">> Installing other packages..."
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
wget -O - https://raw.githubusercontent.com/nvbn/thefuck/master/install.sh | sh - && $0

View file

@ -19,8 +19,8 @@ def apt_upgrade():
def apt_install_core():
for package in _get_json('/apt/apt-installs-core.json'):
os.system("apt-get install {} -y".format(package))
packages = " ".join(_get_json('/apt/apt-installs-core.json')):
os.system("apt-get install {} -y".format(packages))
def add_apt_keys():
@ -38,8 +38,8 @@ def add_apt_repos():
def apt_install_extras():
for package in _get_json('/apt/apt-installs-extra.json'):
os.system("apt-get install {} -y".format(package))
packages = " ".join(_get_json('/apt/apt-installs-extra.json')):
os.system("apt-get install {} -y".format(packages))
def run_custom_installs():
@ -52,10 +52,12 @@ def install_atom_packages():
def export_atom_config():
os.mkdir("~/.atom/")
os.system("cp -R atom/* ~/.atom/")
def install_configs():
os.mkdir("~/.config/terminator/")
shutil.copyfile(DIR + "/config/terminator.conf", "~/.config/terminator/config")
shutil.copyfile(DIR + "/bash/.bash_aliases", "~/.bashrc")