-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
175 lines (150 loc) Β· 3.36 KB
/
install.sh
File metadata and controls
175 lines (150 loc) Β· 3.36 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
#!/bin/bash
#
# ββ¦βββββββ ββββββββ¦ββ¦ β¦βββ
# ββββ ββ£β βββββ£ β β ββ ββ
# β© β©β© β©βββ ββββββ β© ββββ©
#
# Β© 2017 BY JAN FAESSLER
#
# **************************
# THINGS TO INSTALL (ARRAYS)
# **************************
# Apps to install
declare -a apps=(
"1password"
"adobe-acrobat-pro"
"airserver"
"angry-ip-scanner"
"appcleaner"
"appearin"
"atom"
"browserstacklocal"
"chrome-devtools"
"chromium"
"cyberduck"
"disk-inventory-x"
"docker"
"dropbox"
"eclipse-ide"
"electron"
"filezilla"
"firefox"
"firefoxnightly"
"flash-player"
"franz"
"github-desktop"
"gitkraken"
"google-chrome"
"google-chrome-canary"
"google-hangouts"
"hyper"
"iterm2"
"java"
"mamp"
"opera"
"phpstorm"
"safari-technology-preview"
"skype"
"sourcetree"
"spotify"
"steam"
"sublime-text"
"teamviewer"
"torbrowser"
"transmission"
"transmit"
"visual-studio-code"
"vlc"
)
# Commands to install
declare -a commands=(
"bash"
"coreutils"
"trash"
"wget"
"git"
"git-flow"
"node"
)
# **************************
# VARIABLES
# **************************
# Font styles
n=`tput sgr0` # normal
b=`tput bold` # bold
u=`tput smul` # underline
# Timestamp
ts=`date "+%d.%m.%Y-%H:%M:%S"`
# Username
un=$USER
# **************************
# DEPENDENCIES
# **************************
# HOMEBREW
# Install
if ! which brew &>/dev/null
then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update & Cleanup
brew update
brew upgrade
brew cleanup
# Install Taps
brew tap Homebrew/bundle
brew tap caskroom/cask
brew tap caskroom/versions
# XCODE
# Install Xcode command line tools (should already be installed from homebrew)
if ! which xcode-select &>/dev/null
then
xcode-select --install
fi
# **************************
# COMMAND LINE / TERMINAL
# **************************
# OH MY ZSH
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
brew install zsh zsh-completions
# Set oh-my-zsh as default bash profile file
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.zshrc
# COMMAND LINE TOOLS
# Install commands from array on line 63
for i in "${commands[@]}"
do
if ! [ "$(type -t $i)" -o "$(brew ls --versions $i)" ]; then
brew install $i
fi
done
# **************************
# APPS
# **************************
# Install apps from array on line 15
for i in "${apps[@]}"
do
if ! ls /Applications/ | grep -i $i; then
brew cask install $i
fi
done
# **************************
# FONTS
# **************************
# GOOGLE FONTS
# Install all available fonts from goole fonts
curl https://raw.githubusercontent.com/qrpike/Web-Font-Load/master/install.sh | sh
# POWERLINE FONTS
# Install a set of usefull commandline fonts
curl https://raw.githubusercontent.com/faessler/powerline-fonts-load/master/install.sh | sh
# **************************
# IMPROVEMENTS
# **************************
# MAC SYSTEM PREFERENCES
# Show hidden files and folders
defaults write com.apple.finder AppleShowAllFiles YES
# MAC MAIL
# Disable inline attachments in mac mail
defaults write com.apple.mail DisableInlineAttachmentViewing -bool YES
# ITERM2
# Install shell integration
curl -L https://iterm2.com/shell_integration/install_shell_integration.sh | bash