-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·36 lines (28 loc) · 1.03 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
#!/usr/bin/env bash
if [[ "${BASH_SOURCE[0]}" != "$0" ]]; then
# This script has been sourced instead of executed
echo "Please do not source this file!"
return 1
fi
source_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >>/dev/null && pwd)"
# Load up the tasklib and initialize it
# Sourcing the file implicitly initializes the library
. "$source_dir/tasklib.sh"
# Utility function to find an executable in the path
bin_exists() {
hash "$1" 2>/dev/null
}
## ----- Task Definitions Start Here ----- ##
. "$source_dir/setup_scripts/setup_osx.sh"
. "$source_dir/setup_scripts/setup_homebrew.sh"
. "$source_dir/setup_scripts/setup_nix.sh"
. "$source_dir/setup_scripts/setup_stow.sh"
. "$source_dir/setup_scripts/setup_gnupg.sh"
. "$source_dir/setup_scripts/setup_ssh.sh"
. "$source_dir/setup_scripts/setup_fish.sh"
. "$source_dir/setup_scripts/setup_rust.sh"
phony stow_all stow_stow stow_gnupg stow_ssh stow_homebrew stow_fish
phony all stow_all rust_all
## ----- Task Definitions End Here ----- ##
# Go do the things
run_task update_home_profile