Last active
July 8, 2017 15:42
-
-
Save kamontat/928ae260f6ff927b4f8880ccc833d618 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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