Skip to content

Instantly share code, notes, and snippets.

@lucarin91
Last active March 13, 2016 01:14
Show Gist options
  • Save lucarin91/5c48c646adb3c9c3015d to your computer and use it in GitHub Desktop.
Save lucarin91/5c48c646adb3c9c3015d to your computer and use it in GitHub Desktop.
the atom packages and themes that I use.
#!/usr/bin/perl -w
use constant ID => "5c48c646adb3c9c3015d";
use constant FILE_NAME => "atom-package.txt";
die "use:\n\tpull\tdownload and install the packages\n\tpush\tpush the packages to github\n"
unless (@ARGV==1 and ($ARGV[0] eq "pull" or $ARGV[0] eq "push"));
my $tmp_path = "/tmp/".FILE_NAME;
if ($ARGV[0] eq "pull"){
my $url = "https://gist.githubusercontent.com/lucarin91/".ID."/raw/".FILE_NAME;
print "Downloading packages list..\n";
`curl -o $tmp_path $url`;
print "Installing packages..\n";
open my $cmd_fh, "apm install --packages-file $tmp_path |";
while (<$cmd_fh>) {
print "$_";
}
close $cmd_fh;
# `apm install --packages-file $tmp_path`;
}elsif ($ARGV[0] eq "push"){
print "Get atom package list..\n";
`apm list --bare --installed > $tmp_path`;
print "Pushing package list to github..\n";
my $id = ID;
`gist $tmp_path -u $id`;
}
print "\nclear..\n";
`rm $tmp_path`;
print "done!\n";
atom-beautify@0.28.19
auto-detect-indentation@0.4.2
autoclose-html@0.19.0
autocomplete-clang@0.8.8
autocomplete-python@0.10.4
browser-plus@0.0.54
build@0.49.2
color-picker@2.0.12
highlight-selected@0.11.1
java-importer@1.4.1
linter@1.11.2
linter-csslint@1.1.0
linter-gcc@0.5.0
linter-htmlhint@0.2.1
linter-javac@1.3.0
linter-jshint@1.2.1
linter-pep8@1.0.1
linter-php@1.1.6
markdown-pdf@1.3.9
markdown-preview-plus@2.2.2
merge-conflicts@1.3.7
monokai-seti@0.7.0
pandoc@0.2.2
pdf-view@0.36.0
pigments@0.19.0
seti-ui@0.8.1
terminal-plus@0.14.0
todo-show@0.16.0

My Atom Package

This file was generated by the command: apm list --bare --installed > atom-package.txt

You can install all the package by typing: apm install --packages-file atom-package.txt

atom-package.pl pull to install the package

atom-package.pl push to upload the package

Quick installation of the package: curl -L https://gist.githubusercontent.com/lucarin91/5c48c646adb3c9c3015d/raw/04817008bbbad34f30e79bc9647fadc021da549d/atom-package.pl | perl - pull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment