-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathx_brew_install
More file actions
executable file
·28 lines (23 loc) · 1.27 KB
/
x_brew_install
File metadata and controls
executable file
·28 lines (23 loc) · 1.27 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
#!/bin/bash
# **************************************************************************** #
# #
# ::: :::::::: #
# x_brew_install :+: :+: :+: #
# +:+ +:+ +:+ #
# By: xvan-ham <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/10/29 16:42:35 by xvan-ham #+# #+# #
# Updated: 2020/10/29 19:31:02 by xvan-ham ### ########.fr #
# #
# **************************************************************************** #
# Colors
green=$'\e[0;92;40m'
cyan=$'\e[0;1;36;40m'
reset=$'\e[0m'
echo -e "${green}Installing ${cyan}brew${green}.${reset}"
#Delete .brew folder and reinstall
rm -rf $HOME/.brew
git clone --depth=1 https://github.com/Homebrew/brew $HOME/.brew
echo 'export PATH=$HOME/.brew/bin:$PATH' >> $HOME/.zshrc && source $HOME/.zshrc
brew update
echo -e "${cyan}Brew ${green}installation done.${reset}"