-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·49 lines (45 loc) · 1.18 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
system=""
echo "What system do you want to install for?"
select wml in "Linux" "MacOS" "Windows"; do
case $wml in
Linux)
system="Linux"
break
;;
MacOS)
system="MacOS"
break
;;
Windows)
system="Windows"
break
;;
esac
done
# dotfiles_location=$HOME/.dotfiles
# read -p "Where are your .dotfiles located? (ie. /home/user/.dotfiles): " dotfiles_location
echo "Where are your .dotfiles located? (ie. /home/user/.dotfiles):?"
select wml in "~/.dotfiles" "~/dotfiles" "~/Dotfiles" "other, custom"; do
case $wml in
"~/.dotfiles")
dotfiles_location="$HOME/.dotfiles"
break
;;
"~/dotfiles")
dotfiles_location="$HOME/dotfiles"
break
;;
"~/Dotfiles")
dotfiles_location="$HOME/Dotfiles"
break
;;
"other, custom")
read -p "Enter the path to your .dotfiles: " dotfiles_location
break
;;
esac
done
install_file_location=$dotfiles_location/scripts/dotfiles/"$system"-install.sh
echo "Starting installing for $system with $install_file_location ..."
bash $install_file_location $dotfiles_location