-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal_installer
46 lines (33 loc) · 1.14 KB
/
local_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
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
set -euo pipefail
##? Setups the environment
#?? 1.0.0
##?
##? Usage:
##? install
echo "🚀 Welcome to the jvegaf/dotfiles installer!"
echo "-------------------------------------------------"
echo
if grep -qEi "(archlinux)" /proc/version &> /dev/null ; then
echo "Installing previuos dependencies"
sudo pacman -S git base-devel rustup --noconfirm --needed
rustup default stable
elif grep -qEi "(manjaro)" /proc/version &> /dev/null ; then
echo "Installing previuos dependencies"
sudo pacman -S git base-devel rustup --noconfirm --needed
rustup default stable
else
echo "Installing previuos dependencies"
sudo apt-get update && sudo apt-get install -y build-essential fzf fonts-powerline
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
fi
export PATH="$HOME/.cargo/bin:$PATH"
cargo install docpars
export DOTFILES_PATH="$HOME/.dotfiles"
export DOTLY_PATH="$DOTFILES_PATH/modules/dotly"
echo "Installing dotly 🌚"
"$DOTLY_PATH/bin/dot" self install
echo "Symlinks apply"
"$DOTLY_PATH/bin/dot" symlinks apply
echo "Installing Linux Packages"
"$DOTLY_PATH/bin/dot" self install_custom