-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·46 lines (33 loc) · 1.02 KB
/
install.sh
File metadata and controls
executable file
·46 lines (33 loc) · 1.02 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
#!/usr/bin/env bash
COMPUTER_NAME="Pavel’s MacBook"
LOCAL_HOST_NAME="honey"
if [ ! -n "$DOTFILES" ]
then
export DOTFILES="$HOME/.dotfiles"
fi
sudo -v
sudo scutil --set LocalHostName "$LOCAL_HOST_NAME"
sudo scutil --set ComputerName "$COMPUTER_NAME"
ln -sf "$DOTFILES/.config/zprofile" "$HOME/.zprofile"
ln -sf "$DOTFILES/.config/zshenv" "$HOME/.zshenv"
ln -sf "$DOTFILES/.config/zshrc" "$HOME/.zshrc"
source "$HOME/.zprofile"
source "$HOME/.zshenv"
if ! pkgutil --packages | grep CL >/dev/null
then
if xcode-select --print-path &>/dev/null
then
sudo rm -rf "$(xcode-select --print-path)"
fi
xcode-select --install
read -s -p "To continue, you need to wait while Command line tools will be installed. Press RETURN if you are done."; echo
fi
if ! which brew >/dev/null
then
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
cp "$DOTFILES/.fonts/google-sans-flex/"*.ttf "$HOME/Library/Fonts/"
"$DOTFILES/.formulae"
"$DOTFILES/.casks"
"$DOTFILES/.macos"
brew cleanup