-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·54 lines (47 loc) · 1.57 KB
/
install.sh
File metadata and controls
executable file
·54 lines (47 loc) · 1.57 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
#!/bin/sh
brew="/opt/homebrew/bin/brew"
if [ -f "$brew" ]
then
echo "Homebrew is installed, nothing to do here"
else
echo "Homebrew is not installed, installing now"
echo "This may take a while"
echo "Homebrew requires osx command lines tools, please download xcode first"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
localGit="/usr/local/bin/git"
if [ -f "$localGit" ]
then
echo "git is all good"
else
brew install git
fi
# Okay so everything should be good
# Fingers cross at least
# Now lets clone my dotfiles repo into .dotfiles/
echo "---------------------------------------------------------"
echo "Cloning Mike's dotfiles insto .dotfiles"
git clone https://github.com/mhartington/dotfiles.git ~/.dotfiles
cd .dotfiles
echo "Restoring homebrew from bundle file"
brew bundle -v
echo "---------------------------------------------------------"
cd $HOME
echo "running RCM's rcup command"
echo "This is symlink the rc files in .dofiles"
echo "with the rc files in $HOME"
rcup
echo "---------------------------------------------------------"
echo "---------------------------------------------------------"
echo "Changing to zsh"
chsh -s $(which zsh)
echo "You'll need to log out for this to take effect"
echo "---------------------------------------------------------"
echo "running oxs defaults"
~./osx.sh
echo "---------------------------------------------------------"
echo "All done!"
echo "and change your terminal font to source code pro"
echo "Cheers"
echo "---------------------------------------------------------"
exit 0