-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·33 lines (27 loc) · 905 Bytes
/
install.sh
File metadata and controls
executable file
·33 lines (27 loc) · 905 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
#!/usr/bin/env bash
# zsh
sudo apt update && yes | sudo apt install zsh unzip
if [ ! -d "$HOME/c" ] ; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
sudo chsh -s $(readlink -f $(which zsh)) $(whoami)
# aws cli
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
# dotfiles
DOTFILES_CLONE_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
for dotfile in "$DOTFILES_CLONE_PATH/".*; do
# Skip `..` and '.'
[[ $dotfile =~ \.{1,2}$ ]] && continue
# Skip Git related
[[ $dotfile =~ \.git$ ]] && continue
[[ $dotfile =~ \.gitignore$ ]] && continue
[[ $dotfile =~ \.gitattributes$ ]] && continue
echo "Symlinking $dotfile"
ln -sf "$dotfile" "$HOME"
done
# git
if [ ! -d "$HOME/c" ] ; then
git clone git@github.com:cdr/c.git "$HOME/c"
fi