-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
77 lines (62 loc) · 2.18 KB
/
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
#!/bin/sh
# Install Oh My Zsh if it isn't already present
if [ ! -d "$HOME/.oh-my-zsh" ]; then
echo "Installing Oh My Zsh..."
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
else
echo "Oh My Zsh is already installed"
fi
# Instal Homebrew if it isn't already present
if [ ! -d "/usr/local/Homebrew" ]; then
echo "Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
echo "Homebrew is already installed"
fi
# Install Homebrew packages
echo "Installing Homebrew packages..."
brew install git
brew install tmux
brew install vim
brew install htop
brew install go
brew install thefuck
brew install zsh-autosuggestions
echo "Installing Homebrew Casks..."
brew install --cask alfred
brew install --cask visual-studio-code
brew install --cask bitwarden
brew install --cask veracrypt
brew install --cask spotify
brew install --cask duckduckgo
brew install --cask affinity-photo
brew install --cask affinity-designer
brew install --cask affinity-publisher
brew install --cask protonvpn
brew install --cask rectangle
brew install --cask coteditor
brew install --cask tor-browser
brew install --cask zoom
brew install --cask mattermost
git clone https://github.com/dracula/zsh.git "$ZSH_CUSTOM/themes/dracula-prompt"
ln -s "$ZSH_CUSTOM/themes/dracula-prompt/dracula.zsh-theme" "$ZSH_CUSTOM/themes/dracula.zsh-theme"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
if [ ! -d "$HOME/Code" ]; then
echo "Creating directory ~/Code..."
mkdir "$HOME/Code"
else
echo "Directory ~/Code already exists"
fi
if [ ! -d "$HOME/Packages" ]; then
echo "Creating directory ~/Packages..."
mkdir "$HOME/Packages"
else
echo "Directory ~/Packages already exists"
fi
# Clone VimConfig repository
echo "Cloning VimConfig repository..."
git clone git@github.com:junderhill/VimConfig.git "$HOME/Packages/vimconfig"
echo "Configuring VIM"
chmod +x "$HOME/Packages/vimconfig/configureVim.sh" && "$HOME/Packages/vimconfig/configureVim.sh"
cp "$HOME/.zshrc" "$HOME/.zshrc.bak"
cp zshrc "$HOME/.zshrc"