Commit Graph

2738 Commits (f698261487f02ae6a6f51303a68a74e17ffaa460)

Author SHA1 Message Date
Nils Winkler f698261487
Updated to https://github.com/tralston/bats-file v0.3.0 2020-04-20 09:00:52 +02:00
Nils Winkler e0f72c98e9
Merge pull request #1563 from rico-chet/refactor-travis-env-to-jobs
Refactor travis build matrix to `jobs`
2020-04-19 13:06:14 +02:00
Alex Thiessen b75b769719
travis: Refactor jobs to use inheritance
Since the existing jobs are similar (currently, the `script` keys are
same), move the equal parts to a new shared key to have them in one
place. The new map will receive more content in upcoming commits.
2020-04-18 18:57:17 +02:00
Alex Thiessen 576f2b37ac
travis: Switch build matrix from `os` to `jobs`
There are a couple ways to declare a build matrix in Travis CI, refer to
https://docs.travis-ci.com/user/build-matrix.

Since upcoming commits will add more ways to run tests, switch the build
matrix from simple OS variation to a more powerful list of jobs.
2020-04-18 18:54:18 +02:00
Alex Thiessen 44ddc58334
travis: Update language from `c` to `shell`
Be more precise as to what language is used; full list is found here:
https://config.travis-ci.com/ref/language.
2020-04-18 18:54:06 +02:00
Alex Thiessen 83fbfcf88a
travis: Remove obsolete `sudo`
`sudo` key is deprecated, refer to
https://docs.travis-ci.com/user/reference/overview/#deprecated-virtualization-environments.
2020-04-18 18:39:29 +02:00
Nils Winkler c9dc334981
Merge pull request #1558 from nwinkler/update-bats-assert-support
Update Bats libs "assert" and "support"
2020-04-13 15:03:26 +02:00
Nils Winkler 1d03421f12
Merge pull request #1557 from ucomesdag/master
Added a sudo plugin
2020-04-13 14:57:52 +02:00
Nils Winkler 2bb2af7eb3
Merge pull request #1556 from matthewadams/fix-uuid-on-linux
fix: uuid behavior for linux
2020-04-13 14:56:22 +02:00
Matthew Adams c6e76fe4ee address review comments 2020-04-13 07:50:16 -05:00
Uco Mesdag dfeb72d6aa
Added function metadata and bash version check 2020-04-13 13:35:52 +02:00
Nils Winkler 9f5f762869 Updated bats-assert to v2.0.0 2020-04-13 12:51:29 +02:00
Nils Winkler 1dfaf47040 Updated bats-support library to v0.3.0 commit 2020-04-13 12:51:29 +02:00
Nils Winkler 023b4c3c3b Migrated bats-support to bats-core project repo, v0.3.0 2020-04-13 12:51:29 +02:00
Uco Mesdag e73f6dbc62
Reworded the about 2020-04-13 02:37:24 +02:00
Uco Mesdag b220c0e744
Plugin to toggle sudo before your current or last command 2020-04-13 02:30:28 +02:00
Matthew Adams de307f43cc fix uuid behavior for linux 2020-04-12 11:19:35 -05:00
Nils Winkler f2c07f5143
Merge pull request #1554 from rico-chet/probe-golang-in-tests
test/plugins/go: Skip tests in absence of `go`
2020-04-10 19:27:59 +02:00
Alex Thiessen c003f0f342
test/plugins/go: Skip tests in absence of `go`
In case `go` is not installed, tests of the according plugin fail. It's
better to just skip them since `golang` isn't commonly installed on
`bash-it` developers' machines.

In CI environment, no tests should be skipped, so run them anyway.
2020-04-10 00:03:39 +00:00
Nils Winkler cb1490fe66
Merge pull request #1545 from rico-chet/fix-git-tests
test/test_helper.bash: Don't use system/user `git` config
2020-04-09 08:38:10 +02:00
Alex Thiessen 3d45f01728
test/test_helper: Don't use system/user `git` config
Git uses system-wide and user-wide configurations per default and these
can interfere with our tests. Keep `git` from using them by setting the
according environment variables.

This might also help with other tools which access user's home
directory.
2020-04-08 14:31:33 +02:00
Nils Winkler 9ef0b33641
Merge pull request #1546 from rico-chet/run-myip-test
Run `myip` test
2020-04-08 13:06:55 +02:00
Alex Thiessen 668306cae7
test/plugins/base: Run `myip` test
Test of `myip` was skipped, allegedly for it being slow. It's fast for
me (~400 ms), so enable it unconditionally.
2020-04-08 12:56:04 +02:00
Nils Winkler bcfae07f97
Merge pull request #1553 from BarbUk/fix/barbuk_theme_var_naming
Theme barbuk: update custom variable naming
2020-04-08 09:21:33 +02:00
Nils Winkler 7945415334
Merge pull request #1552 from rico-chet/detect-http-errors-in-myip
plugins/base: Detect HTTP errors in `myip()`
2020-04-08 09:17:34 +02:00
BarbUk c4b8d4cf2e
Update documentation 2020-04-08 11:06:44 +04:00
BarbUk b968ecac80
Update custom var naming 2020-04-08 11:06:26 +04:00
Nils Winkler 4e5c241095
Merge pull request #1538 from davidpfarrell/themes/barbuk/defaults
theme/barbuk: Update prefix for overrides
2020-04-08 08:54:39 +02:00
Nils Winkler 9e3c4c7a8d
Merge pull request #1551 from davidpfarrell/aliases/git/git-stash
aliases/git: Add aliases fo git stash push/pop
2020-04-07 08:21:56 +02:00
Alex Thiessen 7a83c56d3a
plugins/base: Detect HTTP errors in `myip()`
Out of the box, `curl` reports success (via exit code) even if the
server returns an error, e.g. _429 Too Many Requests_ which was
sometimes the case with `http://myip.dnsomatic.com`. So, errors went
undetected.

There is the `--fail` switch which enables us to use the exit code the
way we need:

> -f, --fail
>        (HTTP) Fail  silently  (no  output  at  all)  on  server
>        errors. This is mostly done to better enable scripts etc
>        to better deal with failed  attempts.  In  normal  cases
>        when  an  HTTP  server  fails  to deliver a document, it
>        returns an HTML document stating so  (which  often  also
>        describes  why  and  more).  This flag will prevent curl
>        from outputting that and return error 22.

Use it to make the `myip()` deliver results reliably.
2020-04-07 00:01:09 +02:00
David Farrell 7fe7fc020e
aliases/git: Add alises fo git stash push/pop 2020-04-06 10:16:11 -07:00
Nils Winkler e33e4eeb00
Merge pull request #1550 from nwinkler/ng-check-completion
Added a check for the ng command in ng completion
2020-04-06 16:17:08 +02:00
Nils Winkler 6b4970136b Added a check for the ng command in ng completion
See #1542, #1543
2020-04-06 16:14:27 +02:00
Nils Winkler 4d7b897e5f
Merge pull request #1543 from tbhaxor/patch-1
Update ng.completion.bash
2020-04-06 09:22:03 +02:00
Gurkirat Singh 5ad244da87
Update ng.completion.bash 2020-04-02 18:59:10 +05:30
Nils Winkler 88231867b6
Merge pull request #1528 from davidpfarrell/plugins/goenv
Fix goenv plugin
2020-04-01 10:46:18 +02:00
Nils Winkler f4618ae918
Merge pull request #1536 from BarbUk/update/barbuk_theme_ssh
Theme barbuk: Add ssh detection and user@host information in ssh session
2020-04-01 10:17:33 +02:00
BarbUk 3c6ffeb44f
Update theme var prefix 2020-04-01 12:09:54 +04:00
Nils Winkler a1b78effb0
Merge pull request #1540 from davidpfarrell/plugins/brainy/sudo
theme/brainy: Update sudo check method
2020-04-01 10:02:21 +02:00
Nils Winkler 968436f088
Merge pull request #1539 from davidpfarrell/plugins/atomic/sudo
theme/atomic: Update sudo check method
2020-04-01 10:01:47 +02:00
David Farrell 1d6b01018d
theme/brainy: Update sudo check method 2020-03-31 14:11:05 -07:00
BarbUk 0896ff2fb3
Use same notation for user@hostname 2020-04-01 01:08:38 +04:00
BarbUk d6d4e4bc7d
Fix typo 2020-04-01 01:05:15 +04:00
BarbUk 78db4d56f0
Update documentation to explain new BARBUK_HOST_INFO configuration 2020-04-01 01:02:24 +04:00
David Farrell d79fc5027b
theme/atomic: update sudo check method 2020-03-31 14:02:22 -07:00
BarbUk 347995d33e
Allow to customize hostname format 2020-04-01 01:02:01 +04:00
BarbUk 6d0744a928
Update documentation 2020-04-01 00:48:11 +04:00
BarbUk d39eb053cf
Allow to disable ssh info 2020-04-01 00:46:58 +04:00
David Farrell 6943996f0b
Revert the NONE_CHAR override 2020-03-31 10:21:02 -07:00
David Farrell 9e443009ac
theme/barbuk: Update prefix for overrides 2020-03-31 10:15:22 -07:00