-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit-mac.sh
executable file
·96 lines (71 loc) · 2.59 KB
/
init-mac.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#!/usr/bin/env bash
#-------------------------------------------------------------------------------
# Instructions
# 1. Install xcode or just command line tools
# 2. Install homebrew, casks, and packages
# 3. Add ssh key to github
# 4. Clone dotfiles
# 5. Set up symlinks
# 6. Install fonts, open apps, customize as needed
#-------------------------------------------------------------------------------
# xcode command line tools
xcode-select -p
#-------------------------------------------------------------------------------
# homebrew
# Go to: https://brew.sh/
# If you want to install specific versions through homebrew:
brew tap homebrew/cask-versions
#-------------------------------------------------------------------------------
# homebrew cask apps
apps="alfred emacs firefox google-chrome iterm2 linearmouse macdown paintbrush
scroll-reverser sizeup vlc"
for app in $apps; do
brew install --cask "$app"
done
#-------------------------------------------------------------------------------
# homebrew packages
packages="bash cloc coreutils ctags ffmpeg fzf git haskell-stack htop markdown p7zip
rbenv rename shellcheck the_silver_searcher thefuck tree ydiff youtube-dl"
for package in $packages; do
brew install "$package"
done
#-------------------------------------------------------------------------------
# Symlinks
~/dotfiles/init-symlinks.sh
#-------------------------------------------------------------------------------
# java 1.8
# brew tap AdoptOpenJDK/openjdk
# brew cask install adoptopenjdk8
#-------------------------------------------------------------------------------
# zsh
# if ! [ -d ~/.oh-my-zsh ]; then
# echo "Cloning oh-my-zsh..."
# git clone [email protected]:robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
# else
# echo "oh-my-zsh already exists"
# fi
# if ! [ -L ~/.oh-my-zsh/themes/mikenichols.zsh-theme ]; then
# echo "Linking zsh theme..."
# ln -s ~/dotfiles/mikenichols.zsh-theme ~/.oh-my-zsh/themes/mikenichols.zsh-theme
# else
# echo "zsh theme already linked"
# fi
# if [ "$SHELL" = "/usr/local/bin/zsh" ]; then
# echo "zsh already set as login shell"
# else
# sudo chsh -s "/usr/local/bin/zsh" "$(whoami)"
# fi
#-------------------------------------------------------------------------------
# Unicorn leap
# if ! [ -e ~/code/unicornleap ]; then
# echo "Installing unicornleap..."
# mkdir -p ~/code
# cd ~/code
# git clone [email protected]:jgdavey/unicornleap.git
# cd unicornleap
# make && make install
# else
# echo "unicornleap already installed"
# fi
#-------------------------------------------------------------------------------
## End init-mac.sh