-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstaller
executable file
·37 lines (29 loc) · 1.26 KB
/
installer
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
#!/usr/bin/env bash
# Quit program if any command fails
#set -euo pipefail
echo "🚀 Installing dotfiles!"
echo "-------------------------------------------------"
echo
export DOTFILES_PATH="$HOME/.dotfiles"
echo "👉 Cloning into: '$DOTFILES_PATH'"
# Install git, curl and zsh because Alpine linux does not have it.
if [ "$SHELL" = "/bin/ash" ]
then
echo "🤖 ASH detected. Installing git, curl and zsh using apk"
# iSH git bug: https://github.com/ish-app/ish/issues/943#issuecomment-1129325583
apk del git
wget https://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86/git-2.24.4-r0.apk
apk add ./git-2.24.4-r0.apk
git config --global pack.threads "1"
apk add curl
apk add zsh
fi
# To test that git is installed (if not macOS will prompt an installer)
git --version
git clone https://github.com/JuIioCesar/.dotfiles.git "$DOTFILES_PATH"
rm -f $HOME/.zshrc
# The plugin is already in the zsh config.
ln -s $DOTFILES_PATH/zsh/.zshrc $HOME/.zshrc #Link zsh.
exec zsh
run_install
echo "🧠 finished"