Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ptemmer/15eab783e0074f633c79d081834e8227 to your computer and use it in GitHub Desktop.
Save ptemmer/15eab783e0074f633c79d081834e8227 to your computer and use it in GitHub Desktop.
Chef Editor - This simple script for install Atom's packages - add syntax highlighting, commands, and code snippets.
#!/bin/bash
# https://learn.chef.io/modules/text-editors#/
atom_packages="darron/language-chef \
pauldruziak/language-rspec \
chef-training/language-inspec \
habitat-sh/language-habitat \
habitat-sh/language-habitat \
steelbrain/linter \
AtomLinter/linter-foodcritic \
AtomLinter/linter-rubocop
"
cd ~/.atom/packages
for atom_package in $atom_packages; do
name_package=$( echo $atom_package | cut -d/ -f2 | sed s/.git// )
echo "Installing Atom package ............................ $name_package"
sleep 3
rm -rf ~/.atom/packages/$name_package
git clone https://github.com/$atom_package
cd $name_package
apm install
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment