-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·53 lines (47 loc) · 1.46 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
#!/bin/bash
# Fonction pour vérifier et installer Homebrew sur macOS
installer_homebrew() {
echo "Vérification de Homebrew..."
if test ! $(which brew); then
echo "Installation de Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
echo "Homebrew est déjà installé."
fi
brew update
brew upgrade
}
# Fonction pour installer les outils via Homebrew
installer_outils() {
echo "Installation des outils..."
brew install git gh tmux pandoc tree cheat npm pdfgrep ripgrep fd sioyek
brew install koekeishiya/formulae/skhd
brew install koekeishiya/formulae/yabai
echo "Outils installés."
}
# Installation de Neovim
installer_neovim() {
echo "Installation de Neovim..."
brew install neovim
echo "Neovim installé."
}
# Configuration de tmux et tpm
configurer_tmux() {
echo "Configuration de tmux et TPM..."
if [ ! -d "$HOME/.tmux/plugins/tpm" ]; then
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
else
echo "TPM est déjà configuré."
fi
}
# Vérification du système d'exploitation
if [ "$(uname)" == "Darwin" ]; then
echo "Ce script est exécuté sur macOS."
installer_homebrew
installer_outils
installer_neovim
configurer_tmux
else
echo "Ce script est conçu pour macOS. Votre système d'exploitation n'est pas pris en charge."
fi
echo "Script d'installation terminé."