-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.sh
executable file
·59 lines (47 loc) · 1.44 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
#!/bin/bash
# get dotfiles dir
DOTFILES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# get sudo privs upfront
sudo -v
# accept xcode command line tools terms
echo "Accepting xcode command line tools terms"
xcode-select --install
# install rosetta (for intel based apps)
echo "Installing rosetta"
softwareupdate --install-rosetta --agree-to-license
# change macOS configs/defaults
echo "Updating macOS configs/defaults"
$DOTFILES/bin/macos_defaults.sh
# brew (and installs)
echo "Installing brew"
$DOTFILES/bin/install_brew.sh
echo "Initializing brew"
eval $(/opt/homebrew/bin/brew shellenv)
echo "Running brew bundle"
brew bundle --no-upgrade --file=$DOTFILES/etc/Brewfile_m1
# install node
brew_prefix=$(brew --prefix)
source $brew_prefix/opt/nvm/nvm.sh # This loads nvm
echo "installing node"
nvm install --lts
nvm use default
echo "Symlinking dotfiles"
$DOTFILES/bin/symlink_files.sh
# set shell (assuming ZSH has been installed)
echo "Setting default shell to zsh"
$DOTFILES/bin/set_zsh_mac.sh
echo "Installing oh-my-zsh"
$DOTFILES/bin/install_oh_my_zsh.sh
# setup zsh
echo "Installing zsh syntax highlighting"
$DOTFILES/bin/install_zsh_syntax_highlighting.sh
# install TPM/plugins
echo "Installing TPM"
$DOTFILES/bin/install_tpm.sh
echo "Updating TPM plugins"
$DOTFILES/bin/update_tpm_plugins.sh
# pyenv/pip (and installs)
# $DOTFILES/bin/pyenv_installs_mac.sh
# eval "$(pyenv init -)"
# $DOTFILES/bin/install_pip.sh
# $DOTFILES/bin/pip_installs.sh