Commit Graph

2583 Commits (546b4e948fc4ce67762bb604fd8f7dea15ce5b8f)

Author SHA1 Message Date
con-f-use 60b3572f7c
Purge `$subdirectory` leftover in docker aliases 2018-12-11 21:10:52 +01:00
con-f-use 7136604b57
Fix dependency of docker aliases on docker plugin
Some of the docker aliases use functions found in the docker plugin. If the plugin is not enabled, these aliases do not work. This commit only defines the aliases if the plugin is enabled.

Also changed: `dkelc` now creates an explicit login shell, has the synonym `dkbash` and uses no backticks. Reason: on some docker images the status as login-shell is not set automatically, which causes e.g. `/etc/bash.bashrc` and `/etc/profile` not to be loaded in these images.

Note: There should be a convenience function in `lib/helpers.bash` that checks if a plugin is available/enabled/disabled. The if-statement if rather clonky.
2018-12-10 15:03:10 +01:00
con-f-use 247b00fc36
Merge pull request #1 from Bash-it/master
Sync with original bash-it repo
2018-12-10 12:38:48 +01:00
Travis Swicegood 7f34570a05
Merge pull request #1267 from cornfeedhobo/fix-go-env-vars
Add multiple path support to go plugin
2018-12-06 22:07:21 -06:00
cornfeedhobo 1030c0e9e1
one more test ... why not 2018-12-06 17:11:13 -05:00
cornfeedhobo 3645305644
add go plugin tests and update list reversal logic 2018-12-06 17:07:03 -05:00
Travis Swicegood 1dadfc92ba
Merge pull request #1283 from Bash-it/bugfix/bash_completion_debian
Bugfix - issue with sourced files (noted by @caguettaz)
2018-12-05 22:07:07 -06:00
Travis Swicegood 2d6085b033 Switch from false to skip – I think that's more clear 2018-12-05 21:58:13 -06:00
Travis Swicegood 7b32dd6424 Add filtering to the $2 input in addition to $1 2018-12-05 21:54:59 -06:00
Travis Swicegood 5b8f8d874e Default to loading everything
The tests are failing because $1 is being passed through from the
initial loading. When this loads in the shell, $1 is empty though so
the code works-for-me, but just not the tests.

This filters the $1 input to ensure its one of the valid types
expected inside the ./enabled directory.
2018-12-05 21:53:39 -06:00
Travis Swicegood c76263dc47 Ensure this debugging output is generated (oops) 2018-12-05 21:04:55 -06:00
Travis Swicegood 992b87b816 Shellcheck clean up based on comments from @nwinkler 2018-12-05 21:00:59 -06:00
Travis Swicegood 0793eb41a7 Ignore SC2139 – it's ok that these are expanded when evaluated 2018-12-05 21:00:41 -06:00
Travis Swicegood 61380e686f Remove unused function 2018-12-05 21:00:09 -06:00
Travis Swicegood 286e695910 Ensure that shellcheck can find these files (SC1090) 2018-12-05 20:59:37 -06:00
Nils Winkler 262a7517e3
Merge pull request #1282 from Bash-it/tweak/update-contributing
Tweak the language around force pushes
2018-12-05 08:37:32 +01:00
Nils Winkler 3a7889e05b
Update CONTRIBUTING.md
Fixed capitalization of Bash-it.
2018-12-05 08:37:13 +01:00
Travis Swicegood e5b68695c0 Attempt to simplify by not using aliases 2018-12-04 22:02:10 -06:00
caguettaz 13b6f3d870 [cleanup] Cleaned escaped newlines for alias reload 2018-12-04 16:31:03 +01:00
caguettaz a1bbecc4a5 [bugfix] Fixed reload aliases 2018-12-04 15:58:21 +01:00
caguettaz e198d8dc3d [bugfix] Fixed config family names for reload aliases 2018-12-04 14:58:13 +01:00
Travis Swicegood 87d74c31d8 Tweak the language around force pushes 2018-12-04 07:49:32 -06:00
caguettaz f06439edc3 [cleanup] Harmonized variable names, added support for global config files 2018-12-04 14:30:11 +01:00
Travis Swicegood 374ba8c8ec
Merge pull request #1281 from Bash-it/fix/show-only-merges-into-master
Adjust to only show merges into master
2018-12-03 21:20:49 -06:00
Travis Swicegood 20b61a362f Merge remote-tracking branch 'origin/master' into fix/show-only-merges-into-master 2018-12-03 21:17:56 -06:00
Travis Swicegood babb1e6675 Adjust to only show merges into master
Adding `--first-parent` ensures that only commits from the master branch
are used when showing the history. I've verified this change directly
by comparing the `rev-list` output for `703105c..97df5c45`:

```console
$ git rev-list --merges 703105c...97df5c4
97df5c4540
b5976ada25
$ git rev-list --merges --first-parent 703105c...97df5c4
97df5c4540
```

Note: I've created this branch from 703105c so that I can merge `master`
into it and test `bash-it update` once merged.
2018-12-03 21:17:49 -06:00
Travis Swicegood 97df5c4540
Merge pull request #1143 from eedwards-sk/GH-1142
GH-1142 add behavior to address using set -e
2018-12-02 21:14:26 -06:00
Travis Swicegood b5976ada25 Merge remote-tracking branch 'origin/master' into GH-1142 2018-12-02 21:01:15 -06:00
Travis Swicegood 703105c562
Merge pull request #1230 from Bash-it/feature/add-crystal
Add Crystal auto-completion on Mac
2018-12-02 20:51:09 -06:00
Travis Swicegood 6706814dbc Adjust so this only runs when Homebrew is installed (thanks @nwinkler) 2018-12-02 20:44:00 -06:00
Travis Swicegood 544a0928f0
Merge pull request #1280 from Bash-it/feature/show-upgrades
Show upgrades before blindly upgrading
2018-12-02 12:55:22 -06:00
Travis Swicegood 185c2879d5 Update to show the subject if the body is empty 2018-12-02 10:53:56 -06:00
Travis Swicegood 8e7a566d96 Show update prompt when running bash-it update
This utilizes the body of the merged PR requests to show the commits
that are included in this update. It gives the user a chance to
decline the upgrades by pressing n or N.
2018-12-02 10:47:11 -06:00
Nils Winkler e3a89c8ef1
Merge pull request #1279 from icanhazstring/feature/composer-aliases
Add support for composer aliases
2018-11-30 08:22:53 +01:00
Andreas Frömer dbe4cc690f
Change default prefix to 'co'
Should resolve problem with accidental overriding global default commands like `cp`
2018-11-28 10:40:56 +01:00
icanhazstring bd0c1d92c5 Add support for composer aliases 2018-11-27 12:07:40 +01:00
Nils Winkler 2ce6d58365
Merge pull request #1274 from matthewadams/more-docker 2018-11-26 09:56:06 +01:00
Matthew Adams 6fcb32f851 rm d, dkalp & dkubu 2018-11-24 08:44:46 -06:00
Konstantin Gredeskoul 09c2be9d6b Refactor (extract utilities + add tests) & more…
* Extracting common utilities into utilities.bash
 * Adding new tests for utilities
 * Relocating the cache file to be under $BASH_IT
 * Removing cache cleanup deferral code for now
 * Wiping the cache in local_setup in tests.
2018-11-23 16:40:35 -08:00
Christophe Aguettaz 2f3d4bd130 [cleanup] Added missing global variable cleanup 2018-11-23 22:59:19 +01:00
Christophe Aguettaz 1ba023c97a [bugfix][wip] Fixed issue with Debian's bash-completion 2018-11-23 22:25:14 +01:00
Nils Winkler c84e3e5f85
Merge pull request #1275 from sptndc/patch-1
`init - bash` it's automatically load auto-completion
2018-11-23 09:51:50 +01:00
Septian Dwic 310ee837c9
init - bash its automatically load auto-completion 2018-11-21 02:05:19 +07:00
Matthew Adams 1f80b11476 more aliases 2018-11-20 09:29:15 -06:00
Matthew Adams 05529dbd6b more docker aliases 2018-11-20 07:59:16 -06:00
Konstantin Gredeskoul baae0305b6 Speed up bash-it Search & support exact matches
This commit improves Bash-It search functionality in a couple of ways:

 * bash-it search (with no arguments) will print detailed help.
 * bash-it search now accepts terms prefixed with '@' sign, indicating an exact match.
 * bash-it search now performs smarter caching of the component listings/status

New search syntax is as follows:

   bash-it search [-|@]term1 [-|@]term2 [ --enable | --disable | --help ]
2018-11-19 11:55:36 -08:00
Nils Winkler 8feebc0aa9
Merge pull request #1272 from tonyfeng9891220/master
fix the phoenix mix command -> 'phoenx' to 'phx'.
2018-11-16 08:36:10 +01:00
Nils Winkler 45449a845a
Merge pull request #1271 from seefood/knife-completion
Add completions for Opscode Chef's knife command
2018-11-16 08:35:29 +01:00
Tony Feng 96819ba7f3 fix the phoenix mix command -> 'phoenx' to 'phx'. 2018-11-15 16:57:08 +08:00
Ira Abramov 75564a050f Add completions for Opscode Chef's knife command 2018-11-15 10:35:17 +02:00