forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·39 lines (31 loc) · 784 Bytes
/
bootstrap.sh
File metadata and controls
executable file
·39 lines (31 loc) · 784 Bytes
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
# #!/usr/bin/env zsh
# if ! command -v brew &> /dev/null;
# then
# echo "Installing Homebrew"
# ./install-homebrew.sh
# fi
# if /etc/os-release does not exist, then we are on macos
if [ ! -f /etc/os-release ]; then
echo "OS: MacOS"
OSTYPE="darwin"
else
OSTYPE=$(cat /etc/os-release |grep ID_LIKE | cut -d'=' -f2)
echo "OS: $OSTYPE"
fi
if [ "$OSTYPE" = "debian" ]; then
sudo apt update
if ! command -v curl &> /dev/null
then
sudo apt -y remove libcurl4
sudo apt -y install curl
sudo apt -y install xclip # for tmux clipboard
fi
sudo apt -y install git zsh rsync aptitude
else
echo "Unknown OS"
exit 1
fi
alias apti=aptitude
./install-llvm.sh 18 all
./config-ohmyzsh.sh
./restore_and_backup.sh restore