File tree 3 files changed +17
-0
lines changed
3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,13 @@ That's it! :smiley:
46
46
You can check out more components of Bash-it, and customize it to your desire.
47
47
For more information, see detailed instructions [ here] ( https://bash-it.readthedocs.io/en/latest/installation/ ) .
48
48
49
+ ### custom configuration file location
50
+
51
+ By default the instller modifies/creates the actual `` ~/.bashrc `` is updated.
52
+ If this is undesirable, you can create another file, by run the installer:
53
+ ``` bash
54
+ BASH_IT_CONFIG_FILE=path/to/my/custom/location.bash ~ /.bash_it/install.sh
55
+ ```
49
56
50
57
## Contributing
51
58
Original file line number Diff line number Diff line change @@ -194,6 +194,13 @@ case $OSTYPE in
194
194
;;
195
195
esac
196
196
197
+ # overriding CONFIG_FILE:
198
+ CONFIG_FILE=" ${BASH_IT_CONFIG_FILE:- " ${CONFIG_FILE} " } "
199
+ # create subdir if CONFIG_FILE has subdirectory components
200
+ if [[ " ${CONFIG_FILE%/* } " != " ${CONFIG_FILE} " ]]; then
201
+ mkdir -p " ${HOME} /${CONFIG_FILE%/* } "
202
+ fi
203
+
197
204
BACKUP_FILE=$CONFIG_FILE .bak
198
205
echo " Installing bash-it"
199
206
if [[ -z " ${no_modify_config} " ]]; then
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ case $OSTYPE in
13
13
;;
14
14
esac
15
15
16
+ # overriding CONFIG_FILE:
17
+ CONFIG_FILE=" ${BASH_IT_CONFIG_FILE:- " ${CONFIG_FILE} " } "
18
+
16
19
BACKUP_FILE=$CONFIG_FILE .bak
17
20
18
21
if [ ! -e " $HOME /$BACKUP_FILE " ]; then
You can’t perform that action at this time.
0 commit comments