Commit Graph

1757 Commits (cb469607177790b02f257fdb8a18a35fb2e278c2)

Author SHA1 Message Date
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
Nils Winkler bdd5e50cf9 Merge pull request #980 from shinenelson/honor-NVM_DIR
Honor NVM_DIR shell variable set externally
2017-06-20 09:01:31 +02:00
shine 76d7dfd8bc Resolve https://github.com/Bash-it/bash-it/pull/980#pullrequestreview-44766052 2017-06-19 23:28:12 +05:30
shine 2d92d9817f Honor NVM_DIR shell variable set externally 2017-06-17 17:36:33 +05:30
Nils Winkler 64abb6476f Merge pull request #979 from lfelipe1501/master
Update ATOMIC Theme
2017-06-16 08:11:37 +02:00
Luis Felipe Sánchez d4bc67ffdd Update Theme
Minor Fixes
2017-06-15 15:37:01 -05:00
Luis Felipe Sánchez 794b1661f6 Create README.md 2017-06-15 15:32:53 -05:00
Nils Winkler 1fda6a6af5 Merge pull request #976 from shinenelson/battery-upower
Battery upower
2017-06-11 15:24:53 +02:00
shine 00bb17c3e5 Fix upower output bug with 100% 2017-06-11 15:27:45 +05:30
shine 98f13c7b6a Support upower for battery plugin 2017-06-11 14:33:22 +05:30
Nils Winkler 07b9305d2f Merge pull request #968 from lfelipe1501/master
Improvements in Atomic theme
2017-05-29 08:15:23 +02:00
Luis Felipe Sánchez 7d318def48 Update atomic.theme.bash
Theme improved to 100%
2017-05-28 13:39:48 -05:00
Nils Winkler 070fd070f8 Merge pull request #972 from nikitinvasily/features
Add Arch Linux support for autojump plugin
2017-05-28 13:56:48 +02:00