-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·114 lines (85 loc) · 3.13 KB
/
setup.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#!/bin/bash
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# Update homebrew recipes
echo "Updating homebrew..."
brew update
echo "Installing Git..."
brew install git
brew link git
echo "Git config"
git config --global user.name "Daniel Kopenetz"
git config --global user.email mave2k@gmail.com
echo "Installing brew git utilities..."
brew install git-extras
brew install legit
brew install git-flow
echo "Installing other brew stuff..."
brew install tree
brew install wget
brew install node
#@TODO install our custom fonts and stuff
echo "Cleaning up brew"
brew cleanup
# echo "Copying dotfiles from Github"
# cd ~
# git clone git@github.com:bradp/dotfiles.git .dotfiles
# cd .dotfiles
# sh symdotfiles
# echo "Grunting it up"
# npm install -g grunt-cli
#Install Zsh & Oh My Zsh
echo "Installing Oh My ZSH..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "Setting up Oh My Zsh theme..."
# cd /Users/bradparbs/.oh-my-zsh/themes
# curl https://gist.githubusercontent.com/bradp/a52fffd9cad1cd51edb7/raw/cb46de8e4c77beb7fad38c81dbddf531d9875c78/brad-muse.zsh-theme > brad-muse.zsh-theme
echo "Setting up Zsh plugins..."
# cd ~/.oh-my-zsh/custom/plugins
# git clone git://github.com/zsh-users/zsh-syntax-highlighting.git
brew install zsh-autosuggestions
echo "source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc
brew install zsh-syntax-highlighting
echo "source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc
git clone https://github.com/jirutka/zsh-shift-select.git ~/.oh-my-zsh/custom/plugins/zsh-shift-select
read -p "Add zsh-shift-select to the plugins{} section in your .zshrc-file"
echo "Setting ZSH as shell..."
chsh -s /bin/zsh
# Apps
apps=(
spotify
vlc
dropbox
moom
)
echo "installing apps with Cask..."
brew install --cask --appdir="/Applications" spotify
brew install --cask --appdir="/Applications" vlc
brew install --cask --appdir="/Applications" dropbox
brew install --cask --appdir="/Applications" moom
brew install --cask --appdir="/Applications" obsidian
brew install --cask --appdir="/Applications" synology drive
brew install --cask --appdir="/Applications" 1password
brew cleanup
#@TODO Install moom config
echo "Please setup and sync 1Password, and then run this script again."
read -p "Press [Enter] key after this..."
echo "Please setup and sync Synology Drive, and then run this script again."
read -p "Press [Enter] key after this..."
echo "Please setup and sync Dropbox, and then run this script again."
read -p "Press [Enter] key after this..."
echo "Done!"
#@TODO install vagrant and sites folder