Commit Graph

2178 Commits (fd01635e4abe891998bcc3f81a73880ef9ca8237)

Author SHA1 Message Date
Nils Winkler 4dfca63d6c Merge pull request #1066 from mmasi-attivio/sdkman-dir
Use custom SDKMAN_DIR if set
2017-10-23 18:20:10 +02:00
Michael Masi 083974484e Use custom SDKMAN_DIR if set 2017-10-21 19:15:55 -04:00
Travis Swicegood 6d8b0a68ba Merge pull request #1065 from ariutta/ariutta-patch-1
Mac OS X -> macOS
2017-10-21 17:08:18 -04:00
Anders Riutta a3104fe55a Mac OS X -> macOS
Very minor.
https://www.wired.com/2016/06/apple-os-x-dead-long-live-macos/
2017-10-21 12:36:25 -07:00
Travis Swicegood f5b3e82383 Merge pull request #1063 from Bash-it/feature/configurable-purity-color
Add ability to specify the path color
2017-10-18 17:05:23 -04:00
Travis Swicegood ce6a90c220 Add ability to specify the path color 2017-10-18 16:03:06 -05:00
Nils Winkler 7475024dbd Merge pull request #1062 from nwinkler/buf-unit-test
Buf unit test
2017-10-17 08:27:18 +02:00
Nils Winkler e729826ec0 Fixed some shellcheck warnings 2017-10-17 08:18:58 +02:00
Nils Winkler 395e9eff3c Added a couple more tests for mkcd
Also fixed the order of expected/actual for lsgrep test.
2017-10-17 08:18:58 +02:00
Nils Winkler da77e9506d Fixed buf test case that failed from time to time
Taking two timestamps (one before the function-under-test, and one
after), we minimize the chance of failure.
2017-10-17 08:18:58 +02:00
Nils Winkler f9479cc107 Merge pull request #1060 from nwinkler/bats-migration
Bats migration
2017-10-14 18:21:07 +02:00
Nils Winkler 3a899916bd Removed extra line, no longer needed 2017-10-14 18:15:48 +02:00
Nils Winkler b640107566 Added list of test libraries (bats-assert etc.) 2017-10-14 18:09:58 +02:00
Nils Winkler e2f00b1eb6 Checking for link target 2017-10-14 18:02:04 +02:00
Nils Winkler 80e510d65b Added assert_link_exist function and use that 2017-10-14 18:02:04 +02:00
Nils Winkler e574de8f47 Moved testing for files to bats-file library functions 2017-10-14 18:02:04 +02:00
Nils Winkler efc09fe454 Updated documentation 2017-10-14 18:02:04 +02:00
Nils Winkler 2691a5b138 Moved to bats-assert for assert functions 2017-10-14 18:00:43 +02:00
Nils Winkler c1c29ccc42 Added some more bats-* libs for testing 2017-10-14 18:00:43 +02:00
Nils Winkler 8319545b0a Switched to Bats-core as a submodule
Can't use the official v0.4.0 release, since our tests rely on a change
that was made after the release of v0.4.0.

This code currently uses an unversioned commit of the bats-core repo, we
will switch to a supported version once it has been released, e.g.
v0.4.1.
2017-10-14 18:00:43 +02:00
Nils Winkler 2f91991967 Added bats-core as a Git submodule 2017-10-14 18:00:43 +02:00
Nils Winkler 41fe5953dd Merge pull request #1058 from tanzeeb/patch-1
Change default $GOPATH to $HOME/go
2017-10-14 17:53:26 +02:00
Tanzeeb Khalili 0cef421c97 Change default $GOPATH to $HOME/go
As of Go v1.8, $HOME/go is the default $GOPATH. See https://github.com/golang/go/issues/17262 for the discussion.
2017-10-14 02:13:55 -04:00
Nils Winkler 9f02aa5028 Merge pull request #1056 from miketheman/patch-1
Update docker-compose plugin
2017-10-13 19:52:07 +02:00
Nils Winkler c1eb05cd24 Merge pull request #1052 from jean/master
Break lines on sentences or phrases
2017-10-13 19:51:29 +02:00
Mike Fiedler 14261ec5ea Update docker-compose plugin
The `--all` flag was removed in docker-compose 1.7.0 last year. https://github.com/docker/compose/pull/3466

Currently produces:
```
WARNING: --all flag is obsolete. This is now the default behavior of `docker-compose rm`
```
2017-10-10 09:01:39 -04:00
Jean Jordaan ce6fc1aa9b Merge branch 'master' of github.com:Bash-it/bash-it 2017-10-08 12:44:34 +07:00
Travis Swicegood 3bad26796f Merge pull request #1050 from miketheman/bash-it-version
Add version to bash-it command
2017-10-02 10:49:27 -04:00
Jean Jordaan 16ad3e6149 Add linebreaks for long single-line paragraphs
Also some small punctuation and phrasing improvements in README.md
2017-10-02 12:23:25 +07:00
Mike Fiedler b0bceb963e
Replace subshell for git hash, add remote info
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-10-01 16:20:28 -04:00
Mike Fiedler 8015bba27f
Exit directory upon completion, update tests
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-09-30 20:06:42 -04:00
Mike Fiedler 47041bc817
Add bash-it completion for version command
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-09-29 17:15:14 -04:00
Mike Fiedler 71bda32dc0
Add version to commands
Add a helper to show the current git SHA of the installed git repo.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-09-29 05:39:36 -04:00
Nils Winkler 3f839d5ac2 Merge pull request #1033 from jean/master
Do we need to explicity `rm` tempfiles?
2017-09-29 08:19:19 +02:00
Travis Swicegood ba10f9f6d6 Merge pull request #1048 from miketheman/update-brew-completion
Update brew completion
2017-09-28 14:25:46 -04:00
Jean Jordaan ca6a1ae2db Use 'mktemp -t', leave tempfile cleanup to the OS 2017-09-28 21:54:58 +07:00
Jean Jordaan 1e912253ff Refer to /data/data/com.termux/files/home/git/bash-it, quote literal 2017-09-28 21:42:04 +07:00
Mike Fiedler 23da5508cc
Reduce subshell forks with variable
By following the established pattern in https://github.com/Bash-it/bash-it/blob/master/completion/available/system.completion.bash#L17-L22
we can reduce the amount of `fork` calls that are made.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-09-28 07:13:45 -04:00
Mike Fiedler cbe63e8871
Replace system completion with current brew file
Resolves #1046

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-09-28 06:36:30 -04:00
Nils Winkler a75a53b786 Merge pull request #1043 from nwinkler/enabled-global
Move enabled components to a global directory
2017-09-28 08:05:58 +02:00
Nils Winkler 5a92d26cab Merge pull request #1040 from pmoranga/fix_trap_subshell
Fix execution of trap DEBUG on subshells
2017-09-25 10:12:00 +02:00
pmoranga 0fc26dfad2 Add some description 2017-09-22 12:24:15 +02:00
Nils Winkler 3f6f1326dc Fixed ruby test for good (hopefully) 2017-09-17 21:05:59 +02:00
Nils Winkler 3103609640 Reverted Ruby path fix 2017-09-17 21:05:59 +02:00
Nils Winkler 548563e7aa Trying to fix path issue 2017-09-17 21:05:59 +02:00
Nils Winkler f4fa9def14 Fixed the ruby path test in cases where someone already has the ruby bin path on their path variable 2017-09-17 21:05:59 +02:00
Nils Winkler 145ec5dfaa Copied command_exists function to the helpers lib so that there is no hidden dependency on the base plugin
The original command_exists function will stay in the base plugin, but will no longer be used by other plugins or themes.
2017-09-17 21:05:59 +02:00
Nils Winkler 0fe2710c61 More unit tests for loading from global directory structure 2017-09-17 21:05:59 +02:00
Nils Winkler fd637a3dc6 Loading components from global enabled directory 2017-09-17 21:05:59 +02:00
Nils Winkler 5210707da8 Test cases for loading from global directory 2017-09-17 21:05:59 +02:00