-
Notifications
You must be signed in to change notification settings - Fork 359
/
Copy pathatom.sh
31 lines (29 loc) · 1.06 KB
/
atom.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# script to set up atom on mac heavily relying on brew
which -s brew
if [[ $? != 0 ]] ; then
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
echo " ✔ Brew already installed"
echo " Updating Brew"
brew update
fi
which -s atom
if [[ $? != 0 ]] ; then
brew cask install atom
open -a Atom
which -s atom
if [[ $? != 0 ]] ; then
echo " Atom installed, but command shell not installed. Please click Atom > Install Shell Commands from in the Atom application."
else
# install atom packages which make markdown easy
echo "Installing useful Atom packages"
apm install language-markdown markdown-preview-plus minimap sort-selected-elements wordcount markdown-table-editor markdown-toc
fi
else
echo " ✔ Atom already installed"
# install atom packages which make markdown easy
echo "Installing useful Atom packages"
apm install language-markdown markdown-preview-plus minimap sort-selected-elements wordcount markdown-table-editor markdown-toc
fi