-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.sh
74 lines (54 loc) · 1.76 KB
/
common.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
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
####
# Created by Nahuel Barrios on 17/3/16.
####
# shellcheck disable=SC1091
if isOsx "$PLATFORM"; then
. modules/homebrew.sh
else
logInfo "Installing gdebi package manager..."
sudo apt-get -fy install gdebi
logInfo "Updating software sources. Required after adding ppa repositories."
sudo apt-get update
logInfo "Fixing current packages..."
sudo apt-get -f install
logInfo "Removing packages that are not necessary to prevent conflicts..."
sudo apt-get autoremove
logSummary "Software repositories and packages updated ok"
fi
if isLubuntu "$PLATFORM"; then
return 0
fi
addToShell ""
addToShell "# Add user custom directory to PATH. Needed at least for diff-so-fancy, and future tools"
addToShell "export PATH=~/Coding/tools:\$PATH"
logSummary "Added ~/Coding/tools to PATH"
# shellcheck source=modules/git.sh
. modules/git.sh
# shellcheck source=modules/ssh/ssh.sh
. modules/ssh/ssh.sh
# Remember that oh-my-zsh.sh requires Homebrew.sh.
# shellcheck source=modules/oh-my-zsh.sh
. modules/oh-my-zsh/oh-my-zsh.sh
# Remember that jq.sh requires Homebrew.sh.
# shellcheck source=modules/jq.sh
. modules/jq.sh
# shellcheck source=modules/nodejs.sh
. modules/nodejs.sh
# shellcheck source=modules/ruby.sh
. modules/ruby.sh
# shellcheck source=modules/java.sh
. modules/java.sh
# shellcheck source=modules/android.sh
. modules/android.sh
# shellcheck source=modules/sublime-text.sh
. modules/sublime-text.sh
# shellcheck source=modules/google-drive.sh
. modules/google-drive.sh
# shellcheck source=modules/gimp.sh
. modules/gimp.sh
# shellcheck source=modules/mixxx.sh
. modules/mixxx.sh
if isOsx "$PLATFORM"; then
logSummary "Remember to download Audacity for audio edition from: https://www.audacityteam.org/download/mac/"
fi