Skip to content

Commit 5998a83

Browse files
authored
Merge pull request #2357 from Bash-it/feature/bash5-as-baseline
2 parents 7c1b7b3 + 09d2869 commit 5998a83

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

docs/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@
55
![License](https://img.shields.io/github/license/Bash-it/bash-it)
66
![shell](https://img.shields.io/badge/Shell-Bash-blue)
77

8-
**Bash-it** is a collection of community Bash commands and scripts for Bash 3.2+.
8+
**Bash-it** is a collection of community Bash commands and scripts for Bash.
99
(And a shameless ripoff of [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) :smiley:)
10+
97% of the code is compatible with bash 3.2+ but we are geared also toward power users,
11+
and one or two of the more complex plugins may need bash 5 features to run. If you
12+
happen to be "stuck" on an older version of bash, we have code in place to prevent you
13+
from running those modules and getting errors. It's a short list though, and none of the core code.
1014

1115
Includes autocompletion, themes, aliases, custom functions, a few stolen pieces from Steve Losh, and more.
1216

1317
Bash-it provides a solid framework for using, developing and maintaining shell scripts and custom commands for your daily work.
14-
If you're using the _Bourne Again Shell_ (Bash) regularly and have been looking for an easy way on how to keep all of these nice little scripts and aliases under control, then Bash-it is for you!
18+
If you're using the _Bourne Again Shell_ (Bash) regularly and have been looking for an easy way on how to keep all of these nice little scripts and aliases under control, then Bash-it is for you!
1519
Stop polluting your `~/bin` directory and your `.bashrc` file, fork/clone Bash-it and start hacking away.
1620

1721
- [Main Page](https://bash-it.readthedocs.io/en/latest)
@@ -42,9 +46,9 @@ Stop polluting your `~/bin` directory and your `.bashrc` file, fork/clone Bash-i
4246
``git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it``
4347
2) Run ``~/.bash_it/install.sh``
4448

45-
That's it! :smiley:
49+
That's it! :smiley:
4650

47-
You can check out more components of Bash-it, and customize it to your desire.
51+
You can check out more components of Bash-it, and customize it to your desire.
4852
For more information, see detailed instructions [here](https://bash-it.readthedocs.io/en/latest/installation/).
4953

5054
### custom configuration file location

docs/contributing.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,12 @@ Code Style
4747
Take a look at the existing code for an example (e.g. `the base plugin <plugins/available/base.plugin.bash>`_\ ).
4848
* When adding files, please use the existing file naming conventions, e.g. plugin files need to end in ``.plugin.bash``.
4949
This is important for the installation functionality.
50-
* When using the ``$BASH_IT`` variable, please always enclose it in double quotes to ensure that the code also works when Bash-it is installed in a directory that contains spaces in its name: ``for f in "${BASH_IT}/plugins/available"/*.bash ; do echo "$f" ; done``
50+
* When using the ``$BASH_IT`` variable, please always enclose it in double quotes to ensure that the code also works when
51+
Bash-it is installed in a directory that contains spaces in its name: ``for f in "${BASH_IT}/plugins/available"/*.bash ; do echo "$f" ; done``
5152
* Bash-it supports Bash 3.2 and higher. Please don't use features only available in Bash 4, such as associative arrays.
53+
* That said, if you have a really cool plugin or feature to contribute and it absolutely too slow or hard to implement
54+
without bash4 or higher, please see plugins/available/pack.plugin.bash for an example how to self disable and log the reason
55+
so bash 3.2 users are not stuck with errors that don't need to handle.
5256

5357
Unit Tests
5458
----------

0 commit comments

Comments
 (0)