-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sh
28 lines (23 loc) · 1.29 KB
/
init.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
#!/usr/bin/env bash
#
# This main bootstrap file loads all bash functions and modules
# ------------------------------------------------------------------------------
# Export global variables
# ------------------------------------------------------------------------------
#export FOO=bar
# ------------------------------------------------------------------------------
# Source functions first
# ------------------------------------------------------------------------------
for file in $DOTFILES_HOME/functions/*; do source $file; done
# ------------------------------------------------------------------------------
# Source files that end with `.autoload.first.sh`
# ------------------------------------------------------------------------------
find_and_source "*.autoload.first.sh" $DOTFILES_HOME
# ------------------------------------------------------------------------------
# Source files that end with `.autoload.sh`
# ------------------------------------------------------------------------------
find_and_source "*.autoload.sh" $DOTFILES_HOME
# ------------------------------------------------------------------------------
# Source files that end with `.autoload.last.sh`
# ------------------------------------------------------------------------------
find_and_source "*.autoload.last.sh" $DOTFILES_HOME