-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
131 lines (93 loc) · 4.74 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#!/bin/bash
RED="\033[31m"
GREEN="\033[32m"
YELLOW="\033[33m"
BLUE="\033[34m"
MAGENTA="\033[35m"
WHITE="\033[37m"
NORMAL="\033[0;39m"
printf "\n${WHITE}==============================================================================
SETTING UP YOUR COMPUTER!
==============================================================================${NORMAL}\n"
# Show hidden dotfiles in finder
printf "\n${MAGENTA}Showing hidden files to be visible finder...${NORMAL}\n"
eval "defaults write com.apple.finder AppleShowAllFiles YES"
eval "killall Finder"
# Install XCode Command Line Tools
printf "\n${BLUE}Installing XCode Command Line Tools...${NORMAL}\n"
eval "xcode-select --install"
# Install Homebrew for easier macOS package management
printf "\n${YELLOW}Installing Homebrew...${NORMAL}\n"
eval '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'
# If this is an M1 mac
if [[ `uname -m` == 'arm64' ]]; then
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> "/Users/$USER/.zprofile"
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
printf "\n${MAGENTA}Installing other brew casks...${NORMAL}\n"
printf "\n${MAGENTA}Installing github CLI...${NORMAL}\n"
eval "brew install gh"
printf "\n${MAGENTA}Installing stow...${NORMAL}\n"
eval "brew install stow"
printf "\n${MAGENTA}Installing vim...${NORMAL}\n"
eval "brew install vim"
printf "\n${MAGENTA}Installing fzf...${NORMAL}\n"
eval "brew install fzf"
printf "\n${MAGENTA}Installing fd...${NORMAL}\n"
eval "brew install fd"
printf "\n${MAGENTA}Installing bat...${NORMAL}\n"
eval "brew install bat"
printf "\n${MAGENTA}Installing git-delta...${NORMAL}\n"
eval "brew install git-delta"
printf "\n${MAGENTA}Installing eza...${NORMAL}\n"
eval "brew install eza"
printf "\n${MAGENTA}Installing tldr...${NORMAL}\n"
eval "brew install tldr"
printf "\n${MAGENTA}Installing thefuck...${NORMAL}\n"
eval "brew install thefuck"
printf "\n${MAGENTA}Installing zoxide...${NORMAL}\n"
eval "brew install zoxide"
# ---------- Cloning from Github ---------- #
printf "\n${BLUE}Cloning fzf-git...${NORMAL}\n"
eval "git clone https://github.com/junegunn/fzf-git.sh.git ${ZSH_CUSTOM:-~/fzf-git}"
# ---------- Install OhMyZsh with Plugins and Themes ---------- #
printf "\n${BLUE}Installing Oh My Zsh...${NORMAL}\n"
eval "sh -c '$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)'"
printf "\n${MAGENTA}Installing ZSH autosuggestions plugin...${NORMAL}\n"
eval "git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions"
printf "\n${MAGENTA}Installing ZSH syntax highlighting plugin...${NORMAL}\n"
eval "git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting"
printf "\n${MAGENTA}Installing ZSH you-should-use plugin...${NORMAL}\n"
eval "git clone https://github.com/MichaelAquilina/zsh-you-should-use.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/you-should-use"
printf "\n${MAGENTA}Installing ZSH powerlevel10k theme...${NORMAL}\n"
eval "git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k"
# Install NVM
printf "\n${GREEN}Installing NVM...${NORMAL}\n"
eval "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash"
eval "nvm install --lts"
# Open links for apps that can't be downloaded via brew cask
printf "\n${BLUE}Opening links for apps to download...${NORMAL}\n"
# Browsers
eval "open https://www.google.com/chrome/"
eval "open https://www.mozilla.org/en-US/firefox/new/"
# Productivity
eval "open https://rectangleapp.com/"
eval "open https://maccy.app/"
eval "open https://www.alfredapp.com/"
eval "open https://1password.com/downloads/mac/"
eval "open https://itunes.apple.com/us/app/next-meeting/id1017470484?mt=12"
eval "open https://ticktick.com/about/download"
eval "open https://www.notion.so/desktop"
# Development
eval "open https://code.visualstudio.com/"
eval "open https://www.iterm2.com/"
eval "open https://docs.docker.com/docker-for-mac/install/"
# Design
eval "open https://www.figma.com/downloads/"
# Follow the instructions on GitHub to generate a new SSH key and add it to your Github account.
printf "\n${WHITE}==============================================================================
${GREEN}All set!
${WHITE}Make sure to follow the instructions on GitHub to generate a new SSH key and then add the key to your GitHub account.
==============================================================================${NORMAL}\n"
eval "open https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/#generating-a-new-ssh-key"
eval "open https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account"