-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·42 lines (35 loc) · 2.08 KB
/
setup.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
#!/bin/bash
# TODO Verify which OS is running this install and make it agnostic(remove .osx configs for eg)
# TODO Make it more flexible/optional steps
# TODO Check if its a full install(including apps/OS configs/etc) or if want ONLY dotfiles installed/re-installed
# TODO #4 Make an "namespaced/isolated" mode for dotfiles, where everything overwritten will be backup'ed and can be restored to original version with a single command run(./setup.sh restore-original)
echo "Make sure git and curl are installed to get this setup working!
You MUST have sudo permission to complete most of the installs.
******** ****** ******* ******* ******* ********** ******** ** ** ******** ********
**//////**/*////** /**////** /**////** **/////** /////**/// /**///// /**/** /**///// **//////
** // /* /** /** /** /** /** ** //** /** /** /**/** /** /**
/** /****** /******* /** /**/** /** /** /******* /**/** /******* /*********
/** *****/*//// **/**///** /** /**/** /** /** /**//// /**/** /**//// ////////**
//** ////**/* /**/** //** /** ** //** ** /** /** /**/** /** /**
//******** /******* /** //** /******* //******* /** /** /**/********/******** ********
//////// /////// // // /////// /////// // // // //////// //////// ////////
"
cd "${0%/*}"
cat "$PWD"/scripts/functions.sh > /tmp/script
set -a
. /tmp/script
if [ $# -eq 0 ]; then
install_only_dotfiles_no_confirm
else
while [ $# -ne 0 ]; do
case $1 in
-h|--help|help) display_help ;;
-i|--install|install) install ;;
-d|--dotfiles|dotfiles) install_only_dotfiles ;;
-u|--update|update) update ;;
-r|--revert|revert) revert ;;
*) display_help ;;
esac
shift
done
fi