Skip to content

Instantly share code, notes, and snippets.

@kamontat
Last active July 8, 2017 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamontat/928ae260f6ff927b4f8880ccc833d618 to your computer and use it in GitHub Desktop.
Save kamontat/928ae260f6ff927b4f8880ccc833d618 to your computer and use it in GitHub Desktop.
#!/bin/bash
# make sure that you give permission to this file
# run chmod 755 atom-plugin.sh
# or chmod +x atom-plugin.sh
# -----------------------------------------
# command setting
if ! command -v apm >/dev/null 2>&1 && ! command -v apm-beta >/dev/null 2>&1; then
echo "you don't have commandline interface, install it!"
exit 1
fi
COMMAND=apm
command -v apm >/dev/null 2>&1 || COMMAND=apm-beta
# -----------------------------------------
# theme
THEMES=("theme 1" "theme 2") # and so on
# package
PACKAGES=("plugin 1" "plugin 2") # and so on
# -----------------------------------------
# execute
echo "installing ${#THEMES[@]} themes!!"
for i in ${THEMES[@]}; do
$COMMAND install $i
done
echo "installing ${#PACKAGES[@]} packages!!"
for i in ${PACKAGES[@]}; do
$COMMAND install $i
done
echo "complete!!!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment