Skip to content

Commit 3ae338a

Browse files
committed
Update build scripts to use $BMA_HOME
1 parent 5ccc945 commit 3ae338a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bash_completion.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# DO NOT MANUALLY MODIFY THIS FILE.
22
# Use 'scripts/build' to regenerate if required.
33

4-
bma_path="${HOME}/.bash-my-aws"
4+
bma_path="${BMA_HOME:-$HOME}/.bash-my-aws"
55
_bma_asgs_completion() {
66
local command="$1"
77
local word="$2"

scripts/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ funcs_after_bma=$(compgen -A function)
4141
exclusions=('region')
4242

4343
for fnc in $(echo "${funcs_before_bma}" "${funcs_after_bma}" "${exclusions}" | tr ' ' '\n' | LC_ALL=C sort | uniq -u); do
44-
echo "alias $fnc='${project_root}/bin/bma $fnc'" >> "$aliases_destination"
44+
echo "alias $fnc='\${BMA_HOME:-\$HOME/.bash-my-aws}/bin/bma $fnc'" >> "$aliases_destination"
4545
done;
4646

4747

scripts/build-completions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cat <<EOF
66
# DO NOT MANUALLY MODIFY THIS FILE.
77
# Use 'scripts/build' to regenerate if required.
88
9-
bma_path="\${HOME}/.bash-my-aws"
9+
bma_path="\${BMA_HOME:-\$HOME}/.bash-my-aws"
1010
EOF
1111

1212
# load in all the completions from scripts/completions

0 commit comments

Comments
 (0)