-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathubuntu-install.sh
61 lines (50 loc) · 1.67 KB
/
ubuntu-install.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
echo ""
echo "Cleaning existing profile"
echo ""
rm -rf ~/.atom
mkdir ~/.atom
cd ~/.atom
echo ""
echo "Downloading and installing Atom"
echo ""
wget https://github.com/atom/atom/releases/download/v1.30.0-beta1/atom-amd64.deb
sudo dpkg -i ./atom-amd64.deb
sudo apt-get -f install
echo ""
echo "Downloading and installing companion packages"
echo ""
wget https://raw.githubusercontent.com/JohnMurga/atom-portable/master/scripts/packages.txt
for packageName in $(cat packages.txt)
do
echo -n "$packageName "
apm install --color false $packageName > /dev/null
if [ $? -ne 0 ]
then
apm install --color false $packageName > /dev/null
if [ $? -ne 0 ]
then
apm install --color false $packageName > /dev/null
if [ $? -ne 0 ]
then
echo "FAILED to install $packageName"
fi
fi
fi
done
echo ""
echo "Downloading AtomPortable config"
echo ""
wget https://raw.githubusercontent.com/JohnMurga/atom-portable/master/template/Data/AtomProfile/config.cson
wget https://raw.githubusercontent.com/JohnMurga/atom-portable/master/template/Data/AtomProfile/init.coffee
wget https://raw.githubusercontent.com/JohnMurga/atom-portable/master/template/Data/AtomProfile/keymap.cson
wget https://raw.githubusercontent.com/JohnMurga/atom-portable/master/template/Data/AtomProfile/styles.less
wget https://raw.githubusercontent.com/JohnMurga/atom-portable/master/template/Data/AtomProfile/.eslintrc
echo ""
echo "Tweaking settings for Ubuntu"
echo ""
sed -i -- 's/Console\;exit//g' config.cson
sed -i -- 's/Bash.bat/gnome-terminal/g' config.cson
sed -i -- 's/\\\\\\\\/\//g' config.cson
echo ""
echo "All done !!"
echo ""