-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·36 lines (30 loc) · 941 Bytes
/
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
#!/bin/zsh
# install ohmyz.sh
echo "Installing ohmyz.sh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
# install p10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# check for `omz` updates
omz update
# copy dotfiles (adapted from coder default script)
echo "Copying dotfiles"
for dotfile in "$(pwd)/".*; do
# Skip Git related
if [[ $dotfile =~ \.git$ ]]; then
echo "not copying .git"
continue
elif [[ $dotfile =~ \.gitignore$ ]]; then
echo "not copying .gitignore"
continue
elif [[ $dotfile =~ \.gitattributes$ ]]; then
echo "not copying .gitattributes"
continue
elif [[ $dotfile =~ \.github$ ]]; then
echo "not copying .github"
continue
fi
echo "Copying $dotfile"
cp -r "$dotfile" "$HOME"
done
# Lacework-specific setup
./setup_lacework.sh