Commit Graph

2135 Commits (45f79770fbb38ff6289299ab936d9da92ca5ad7f)

Author SHA1 Message Date
Nils Winkler 3fac1c7ea5 Fix checks for battery plugin
These now check for the presence of the required function instead of
checking for the battery file in the enabled directory.
2017-06-24 17:31:31 +02:00
Nils Winkler c598487303 Added note about quoting $BASH_IT variable 2017-06-24 17:31:31 +02:00
Nils Winkler 0d9a0987d9 Fixed missing quotes around $BASH_IT variable
This should fix most issues where Bash-it is installed in a directory
containing spaces.
2017-06-24 17:31:30 +02:00
Nils Winkler 6f26f92c97 Fixed checks for enabled files in existing plugins 2017-06-24 17:31:30 +02:00
Nils Winkler 951fe918c0 Automatically running migration command when enabling/disabling components 2017-06-24 17:31:30 +02:00
Nils Winkler 0039534517 Renamed a couple of variables 2017-06-24 17:31:30 +02:00
Nils Winkler 15868b1b61 Moved the contribution guidelines to a more prominent position at the top of the page
Hoping that more people will take a look at these guidelines before contributing.
2017-06-24 17:31:30 +02:00
Nils Winkler 095ee3bb91 Added a note about unit testing 2017-06-24 17:31:30 +02:00
Nils Winkler 51c8970eb8 Fixed indentation 2017-06-24 17:31:30 +02:00
Nils Winkler 959dd09713 Added development file 2017-06-24 17:31:30 +02:00
Nils Winkler b686c0dc7f Added a note about theme screenshots 2017-06-24 17:31:30 +02:00
Nils Winkler 1e624113a7 Refactored search test cases to use the assert functions 2017-06-24 17:31:30 +02:00
Nils Winkler cb46960717 Removing enabled components before running tests 2017-06-24 17:31:30 +02:00
Nils Winkler 2607bb815a Avoid polluting the user's Bash-it installation
All of the install steps are done in a test directory
2017-06-24 17:31:30 +02:00
Nils Winkler 6ff4071646 Fixed test execution that only checked for plugins starting with 2 2017-06-24 17:31:30 +02:00
Nils Winkler 9ebbf6e6e5 Updated some load priorities
These will not work yet, since they are used across component types, but this will start working once everything is loaded from the same "enabled" directory.
2017-06-24 17:31:30 +02:00
Nils Winkler dc7173b7ef Using xargs to remove leading spaces
Found here: http://stackoverflow.com/a/12973694/1228454
2017-06-24 17:31:30 +02:00
Nils Winkler bf632e19fc Refactored tests to use helper assert functions 2017-06-24 17:31:30 +02:00
Nils Winkler eb9a15f435 Added test cases for uninstall script 2017-06-24 17:31:30 +02:00
Nils Winkler 43b62b344a Added test case for silent/interactive combo 2017-06-24 17:31:30 +02:00
Nils Winkler 99ad1bc3e6 Running tests on Linux and macOS (as OS X) 2017-06-24 17:31:30 +02:00
Nils Winkler 1ace0b7a89 Checking for backup file creation 2017-06-24 17:31:30 +02:00
Nils Winkler 12ed1b79d3 Check for enabled components after install 2017-06-24 17:31:30 +02:00
Nils Winkler b95fd6fdce Checking config file per OS type 2017-06-24 17:31:30 +02:00
Nils Winkler 6ce9403be0 Started writing tests for the install script 2017-06-24 17:31:30 +02:00
Nils Winkler e112eb43a0 Using local setup/teardown functions 2017-06-24 17:31:30 +02:00
Nils Winkler 9eb10c266b Added support for local setup/teardown functions 2017-06-24 17:31:30 +02:00
Nils Winkler 54774d4f59 Using the existing enable function for interactive install 2017-06-24 17:31:30 +02:00
Nils Winkler 3ecf684eb6 Switched loading of single components to existing functions 2017-06-24 17:31:30 +02:00
Nils Winkler 402179d87d Added prefix to bash-it test cases 2017-06-24 17:31:30 +02:00
Nils Winkler c2446c2692 Added new "bash-it migrate" command that migrates components from the old syntax to the new one that uses the load priority 2017-06-24 17:31:30 +02:00
Nils Winkler b1481038d8 Improved check for components that are already enabled 2017-06-24 17:31:30 +02:00
Nils Winkler 56d0f56714 Filter out items that are already enabled 2017-06-24 17:31:30 +02:00
Nils Winkler 2e0ceba776 Supporting both old and new link structure for completion 2017-06-24 17:31:30 +02:00
Nils Winkler 4e16dfde56 Fixed basename usage for enable all 2017-06-24 17:31:30 +02:00
Nils Winkler d34b820cec Added some code to figure out the directory 2017-06-24 17:31:30 +02:00
Nils Winkler 36a87a5f4e Added some debug output 2017-06-24 17:31:30 +02:00
Nils Winkler 11330596b1 Simplified describe tests 2017-06-24 17:31:30 +02:00
Nils Winkler 65c6e6a1a6 Disable all command and test case 2017-06-24 17:31:30 +02:00
Nils Winkler 098186754c Added test suite for enable/disable 2017-06-24 17:31:30 +02:00
Nils Winkler cc8621a888 Disabling a single component will support both patterns
The old pattern with just the name (node.plugin.bash) and the new one
with the load priority (250---node.plugin.bash).
2017-06-24 17:31:30 +02:00
Nils Winkler dce0ac5b34 Adjusted show function to use the new format 2017-06-24 17:31:30 +02:00
Nils Winkler feb05b279b Changed enable all functionality to call recursive enable 2017-06-24 17:31:30 +02:00
Nils Winkler 74b15b6385 Reading load priority from file 2017-06-24 17:31:30 +02:00
Nils Winkler 9a3bd6dc30 Added load priority for nvm plugin 2017-06-24 17:31:30 +02:00
Nils Winkler 31dd740571 Added default priority for enable 2017-06-24 17:31:30 +02:00
Nils Winkler 10a14585b4 Merge pull request #984 from clayreimann/patch-2
Guard against unset COLUMNS
2017-06-24 16:32:47 +02:00
Clay Reimann ff114660db Guard against unset COLUMNS
When logging in to a new CentOS 7 machine COLUMNS has not been set before the theme is evaluated, causing the following error:
```shell
irongiant-mbp → ssh clayreimann@toren.ddns
Last login: Fri Jun 23 10:05:11 2017 from cpe-24-209-155-17.wi.res.rr.com
-bash: /1: syntax error: operand expected (error token is "/1")
-bash-4.2$ 
```

This fix is based on advice from https://stackoverflow.com/a/3601734
2017-06-23 09:12:46 -05:00
Nils Winkler 696c9d5c4f Merge pull request #983 from aochsner/master
Remove prefixed space
2017-06-21 07:22:19 +02:00
Andrew Ochsner ce5dbbdada Remove prefixed space 2017-06-20 16:40:05 -05:00