File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 23
23
export BASALT_GLOBAL_DATA_DIR="${BASALT_GLOBAL_DATA_DIR:-"${XDG_DATA_HOME:-$HOME/.local/share}/basalt"}"
24
24
25
25
# basalt global and internal functions
26
- source "$BASALT_GLOBAL_REPO/pkg/lib/public/basalt-load .sh"
26
+ source "$BASALT_GLOBAL_REPO/pkg/lib/public/basalt-global .sh"
27
27
source "$BASALT_GLOBAL_REPO/pkg/lib/public/basalt-package.sh"
28
28
29
29
if [ -z "${BASALT_PACKAGE_DIR:-}" ]; then
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ do-global-init() {
67
67
68
68
cat << -"EOF "
69
69
# basalt global functions
70
- source "$BASALT_GLOBAL_REPO/pkg/lib/public/basalt-load .sh"
70
+ source "$BASALT_GLOBAL_REPO/pkg/lib/public/basalt-global .sh"
71
71
72
72
# basalt completions
73
73
if [ -f "$BASALT_GLOBAL_REPO/completions/basalt.bash" ]; then
@@ -89,7 +89,7 @@ do-global-init() {
89
89
90
90
cat << -"EOF "
91
91
# basalt global functions
92
- source "$BASALT_GLOBAL_REPO/pkg/lib/public/basalt-load .sh"
92
+ source "$BASALT_GLOBAL_REPO/pkg/lib/public/basalt-global .sh"
93
93
94
94
# basalt completions
95
95
fpath=("$BASALT_GLOBAL_REPO/completions" $fpath)
Original file line number Diff line number Diff line change 1
1
# shellcheck shell=bash
2
2
3
- # This function is usable by anyone to source some or all functions of a Bash
4
- # library
3
+ # @file basalt-global.sh
4
+ # @brief Contains functions to be used anywhere (shell initialization, Basalt
5
+ # packages, etc.)
5
6
6
7
__basalt_load_dosource () {
7
8
:
8
9
}
9
10
10
- # TODO: rename this function to 'basalt-global.sh' or something and the other to 'basalt-local.sh'
11
11
basalt.load () {
12
12
local __basalt_flag_global=' no'
13
13
local __basalt_flag_dry=' no'
Original file line number Diff line number Diff line change 1
1
# shellcheck shell=bash
2
2
3
- # This function is only usable by those who executed 'basalt-package-init'
3
+ # @file basalt-global.sh
4
+ # @brief Contains files only usable in Basalt packages (à la 'basalt-package-init')
4
5
5
6
basalt.package-load () {
6
7
local __basalt_shopt_nullglob=
You can’t perform that action at this time.
0 commit comments