-
Notifications
You must be signed in to change notification settings - Fork 0
/
homebrew_install.sh
executable file
·79 lines (57 loc) · 1.64 KB
/
homebrew_install.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
#!/bin/zsh
## Install Homebrew
echo "\n
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)"
echo "\nInstalling applications from homebrew..."
## Tap fonts so that they can be installed via homebrew
brew tap homebrew/cask-fonts
## Get latest version of git
brew install git
## get latest version of zsh
brew install zsh
## Setapp
brew install setapp
## Fork
brew install fork
## Visual Studio Code
brew install visual-studio-code
## Jetbrains Mono font
brew install font-jetbrains-mono
## 1Password
brew install 1password
## Swift-Format
brew install swift-format
## Xcodes
brew install xcodes
echo "\ndone."
# Check if .zshrc exists.
ZSHRC=~/.zshrc
if test -f "$ZSHRC"; then
echo "\n.zshrc file already exists."
else
echo "\n.zshrc not found. Creating it..."
touch ~/.zshrc
echo ".zshrc created"
fi
## zsh autosuggestions
echo "\n" >> ~/.zshrc
brew install zsh-autosuggestions
echo "source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc
## zsh syntax highlighting
brew install zsh-syntax-highlighting
echo "source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc
echo "export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/opt/homebrew/share/zsh-syntax-highlighting/highlighters" >> ~/.zshenv
## Add Export Statements
echo "\n
## Add brew completion to zsh
if type brew &>/dev/null; then
FPATH=\$(brew --prefix)/share/zsh/site-functions:\$FPATH
autoload -Uz compinit
compinit
fi
" >> ~/.zshrc
echo "\nDone."