-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·64 lines (49 loc) · 2.5 KB
/
bootstrap.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
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
# Banner
cat <<'EOF'
___ ___ _ _ ______ _ __ _ _
| \/ | | | ( ) | _ \ | | / _(_) |
| . . | __ _ _ __ __| |_ __ __ _ __ _ ___ _ __ __ _|/ ___ | | | |___ | |_| |_ _| | ___ ___
| |\/| |/ _` | '_ \ / _` | '__/ _` |/ _` |/ _ \| '__/ _` | / __| | | | / _ \| __| _| | |/ _ \/ __|
| | | | (_| | | | | (_| | | | (_| | (_| | (_) | | | (_| | \__ \ | |/ / (_) | |_| | | | | __/\__ \_
\_| |_/\__,_|_| |_|\__,_|_| \__,_|\__, |\___/|_| \__,_| |___/ |___/ \___/ \__|_| |_|_|\___||___(_)
__/ |
|___/
/\_/\
( o.o )
> ^ <
EOF
echo "+------------------------------------------+"
printf "| %-40s |\n" "Ubuntu Config Dotfiles - Mandragora"
printf "| %-40s |\n" "$(date)"
printf "| %-40s |\n" "$(uname)"
echo "+------------------------------------------+"
cd; git clone --depth=1 https://github.com/mandragora-hub/dotfiles.git ~/dotfiles
cd ~/dotfiles
# Install tools
sudo apt update
sudo apt install -y git xclip bat neofetch stow jq vim
# terminal preferences
# TODO: Verify .os/terminal-preference.sh
# Install zsh, theme, and plugins
sudo apt update && sudo apt install -y zsh
sudo chsh -s $(which zsh) $(whoami)
# Install Oh-My-ZSH via curl
echo 'Installing Oh-My-ZSH'
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo 'Installing p10k theme'
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
echo "Installing zsh plugins"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/agkozak/zsh-z ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-z
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# Node and Npm packages
# Pokemon script
git clone https://gitlab.com/phoneybadger/pokemon-colorscripts.git
pushd pokemon-colorscripts
sudo ./install.sh
popd
rm -rf pokemon-colorscripts
# Create symlink of dotfiles home directory
stow --target="$HOME" --dir="$PWD" --adopt --stow .
git restore .