-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.zsh
More file actions
executable file
·99 lines (81 loc) · 2.55 KB
/
install.zsh
File metadata and controls
executable file
·99 lines (81 loc) · 2.55 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
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
#!/bin/zsh
echo "👉 Verifying if Brew is available on the system"
if command -v brew &>/dev/null; then
echo "🍺 Brew already instaled"
else
echo "Brew was not found on the system"
echo "🍺 Performing brew installation"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
echo
echo "⬇️ Getting the dotfiles repository"
REPO_ZIP_DIR="https://github.com/LarryMerino/dotfiles/archive/refs/heads/main.zip"
TEMP_DIR=$(mktemp -d)
curl -L $REPO_ZIP_DIR -o $TEMP_DIR/dotfiles.zip
unzip -q $TEMP_DIR/dotfiles.zip -d $TEMP_DIR
echo "📦 Dotfiles repository downloaded"
echo "📁 Creating .config file if not exist"
mkdir -p $HOME/.config
echo
echo " Installing Startship prompt"
brew install starship
# we need to add the following line to the .zshrc file
# in order to start the starship prompt
# eval "$(starship init zsh)"
# official doc: https://starship.rs
if ! grep -Fxq 'eval "$(starship init zsh)"' ~/.zshrc; then
echo 'eval "$(starship init zsh)"' >> ~/.zshrc
fi
echo
echo "👉 Verifying if Alacritty is available on the system"
if command -v alacritty &>/dev/null; then
echo "🚀 Alacritty already instaled"
else
echo "Alacritty was not found on the system"
echo "🚀 Performing Alacritty installation"
brew install alacritty
fi
DOT_FILES_DIR="$HOME/.config/"
echo
echo "📁 Loading Alacritty configuration in $DOT_FILES_DIR directory"
cp -r $TEMP_DIR/dotfiles-main/alacritty $DOT_FILES_DIR
echo
echo "👉 Verifying if Rust is available on the system"
if command -v rustc &>/dev/null; then
echo "🦀 Rust already instaled"
else
echo "Rust was not found on the system"
echo "🦀 Performing rust installation"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
fi
echo
echo "🔧 Performing the installation of all NerdFonts"
brew search '/font-.*-nerd-font/' | awk '{ print $1 }' | xargs -I{} brew install --cask {} || true
echo
echo "🔧 Performing the installation of IDE's"
echo
echo "🔧 Installing neovim"
brew install neovim
echo
echo "🔧 Installing Visual Studio Code"
brew install --cask visual-studio-code
echo
echo "🔧 Performing the installation of command line tools"
echo
echo "🔧 Installing GitHub CLI"
brew install gh
echo
echo "🔧 Installing eza"
brew install eza
echo
echo "🔧 Installing bat"
brew install bat
# Installing esp-rs/esp-idf-template development dependencies
echo
echo "👉 Installing dependencies for esp-rs: std support"
echo
echo "💿 Installing libuv"
brew install libuv
echo
echo "🧹 Cleaning temp files and directories"
rm -rf $TEMP_DIR