Skip to content

Commit a6d0113

Browse files
committedMay 20, 2016
Added wrapper script 'bma'
There are some instances where you may want an alternative to loading bash-my-aws functions into your shell. This script loads all the functions and runs a command consisting of any arguments passed to it.
1 parent 45850c6 commit a6d0113

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
 

‎bin/bma

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# bma
4+
#
5+
# Provides alternative to loading the functions into your
6+
# shell environment.
7+
#
8+
# Useful for calling a function from another process (like 'env')
9+
#
10+
# e.g. env FOO=BAR bma instances
11+
#
12+
# Add it to your PATH or copy/link it to somewhere that is
13+
#
14+
# Assumes you have installed bash-my-aws to standard location
15+
16+
for f in ~/.bash-my-aws/lib/*-functions; do source $f; done
17+
18+
$@

0 commit comments

Comments
 (0)