Skip to content

Commit 5ccc945

Browse files
authored
Merge pull request #319 from lucienboland/master
Provided an easy way to change default location from .bash-my-aws
2 parents ab25282 + 42ee629 commit 5ccc945

File tree

3 files changed

+168
-168
lines changed

3 files changed

+168
-168
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,20 +159,20 @@ As shown below, you may simply clone the GitHub repo and source the files requir
159159
(You should probably fork it instead to keep your customisations)
160160

161161
```Shell
162-
$ git clone https://github.com/bash-my-aws/bash-my-aws.git ~/.bash-my-aws
162+
$ git clone https://github.com/bash-my-aws/bash-my-aws.git ${BMA_HOME:-$HOME/.bash-my-aws}
163163
```
164164

165165
Put the following in your shell's startup file:
166166

167167
```Shell
168-
export PATH="$PATH:$HOME/.bash-my-aws/bin"
169-
source ~/.bash-my-aws/aliases
168+
export PATH="$PATH:${BMA_HOME:-$HOME/.bash-my-aws}/bin"
169+
source ${BMA_HOME:-$HOME/.bash-my-aws}/aliases
170170

171171
# For ZSH users, uncomment the following two lines:
172172
# autoload -U +X compinit && compinit
173173
# autoload -U +X bashcompinit && bashcompinit
174174

175-
source ~/.bash-my-aws/bash_completion.sh
175+
source ${BMA_HOME:-$HOME/.bash-my-aws}/bash_completion.sh
176176
```
177177

178178
#### Why use shell aliases?

0 commit comments

Comments
 (0)