-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
31 lines (22 loc) · 800 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
#! /bin/bash
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Add Homebrew to Path
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/fabian/.profile;
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)";
# Install Packages required
brew install stow neovim;
echo -e "\n######################################################";
# Show possible links
cd ~/.dotfiles;
stow --simulate -v .;
# Ask
echo -e "Beware! In the next Step, existing dotfiles will be overwritten with the Links shown.\nContinue? (Y)";
read var_keyInput;
if [[ !("$var_keyInput" == "Y" || "$var_keyInput" == "y") ]]; then
echo "Aborting"
exit 0
fi
# Stow Creating Softlinks to actual dotfiles
cd ~/.dotfiles;
stow -v .