-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.fish
executable file
·46 lines (40 loc) · 1.23 KB
/
bootstrap.fish
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
#!/usr/bin/env fish
#
# bootstrap installs things.
# set -gx STD_DEBUG /dev/stdout
set -gx DOTFILES_ROOT (pwd -P)
set -gx FISH_CONFIG "$HOME/.config/fish"
source $DOTFILES_ROOT/lib/*
if [ "$(uname -s)" = "Linux" ]
make 'check prerequisites'
and type -q fish
and type -q apt
and type -q git
and type -q vim
and type -q curl
and success 'check prerequisites'
or abort "Install 'fish', 'git', 'vim', 'curl', and 'apt' first"
else
make 'check prerequisites'
and type -q fish
and type -q brew
and type -q git
and type -q vim
and type -q curl
and success 'check prerequisites'
or abort "Install 'fish', 'git', 'vim', 'curl', and 'brew' first"
end
for init in pre_modules/*/init.fish
set -l STEP_NAME $(basename $(dirname $init))
make Configuring $STEP_NAME
and run_with_prefix fish $init
and success Configured $STEP_NAME
or abort Aborted $STEP_NAME
end
# for init in modules/*/init.fish
# set -l STEP_NAME $(basename $(dirname $init))
# make Configuring $STEP_NAME
# and run_with_prefix fish $init
# and success Configured $STEP_NAME
# or abort Aborted $STEP_NAME
# end